Horje
django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty Code Example
django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty
# add SECRET_KEY from terminal (secret_key is collected from django -->settings.py file)
$ export SECRET_KEY='lmrffsgfhrilklg-za7#57vi!zr)ps8)2anyona25###dl)s-#s=7=vn_'
#settings.py
import os
SECRET_KEY = os.environ['SECRET_KEY']
django.core.exceptions.improperlyconfigured: the secret_key setting must not be empty.
I had the same error and it turned out to be a circular dependency between a module or class loaded by the settings and the settings module itself. In my case it was a middleware class which was named in the settings which itself tried to load the settings.




Shell

Related
windows cmd schedule shutdown Code Example windows cmd schedule shutdown Code Example
increase sound in ubuntu Code Example increase sound in ubuntu Code Example
git reset last commit Code Example git reset last commit Code Example
install exact version npm Code Example install exact version npm Code Example
RDP linux ubuntu Code Example RDP linux ubuntu Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12