In the tutorial 4, when executing python manage.py migrate, the error msg "The SECRET_KEY setting must not be empty" is thrown out.
Manuel4131 opened this issue · 2 comments
Manuel4131 commented
When users need to change the setting to local in the settings directory, users also need to
change the manage.py file. The default one is:
-
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "PROJECT_NAME.settings")
But real path is
-
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "PROJECT_NAME.settings.local")
Otherwise, the settings won't be found.
uranusjr commented
The settings.py
file is not moved until chapter 4, in which the environ setup is also addressed (see above comment). Closing as invalid.