Hi PythonAnywhere,
I can run python3.6 manage.py makemigrations in the bash console without any problems. However, when trying this in my virtual environment I get the following error:
raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.") django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.
I get this same error when running a scheduled task using this command:
source virtualenvwrapper.sh && workon myevn && python /home/<<dir>>/<<dir>>/scheduledtask.py
I followed the instructions on https://help.pythonanywhere.com/pages/environment-variables-for-web-apps/ and echo $SECRET_KEY gives the right SECRET_KEY value.
Do you have any idea what could go wrong? :)
Thanks in advance!
Regards, Karsten