Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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']
 
PREVIOUS NEXT
Tagged: #The #setting #empty
ADD COMMENT
Topic
Name
7+9 =