Hello, for the past couple of weeks I've trying to get my Wagtail project going on PythonAnywhere.
I've set up a secret key environmental variable but I'm still getting this error in the logs after reloading and opening the web app, even though the app works fine locally.
raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")
If I don't run source .env
before the local server (see below), I get the secret key error.
$ source .env
$ python manage.py runserver
This all leads me to believe it must be an environment problem. Have tried doing source .env
in the PA bash console as well, doesn't change anything.
I've referred to this topic but no luck.
Is there any light you can shed on this? Thanks!