Back to Install Table of Contents
Problem: I see this error when I run this python manage.py runserver
:
django.core.exceptions.ImproperlyConfigured: Unable to set the SECRET_KEY variable from os.environ or JSON file
Solution:
-
Look in WeVoteServer/config
-
Make sure you made a copy from
environment_variables-template.json
toenvironment_variables.json
On Amazon Linux (Fedora), if you get a “libGeoIP.so.1: cannot open shared object No such file or directory” error when you run WeVoteServer:
$ sudo vi /etc/ld.so.conf
Add on a new line:
/usr/local/lib
Then run:
$ sudo ldconfig