Django ImproperlyConfigured The SECRET_KEY

docker
python
circle.yml

#1

Hello!

I’m trying to run circleci in a django project and in the tests step the build fails with the following output:

File "/home/circleci/repo/venv/lib/python3.6/site-packages/django/conf/__init__.py", line 129, in __init__
    raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")
django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.
Exited with code 1

My project settings contains a properly configured SECRET_KEY, though.
I found this similar issue report https://github.com/Solinea/goldstone-server/issues/189 but no answers were provided.

Any clues on how to proceed?
Thanks!


#2

Just found the issue.
I am using different settings (under a settings folder) and forgot to specify the which settings to use in manage.py and wsgi.py.


#3