How To Resolve Django: ImproperlyConfigured: The SECRET_KEY setting must not be empty Error

Solution 1

When django imports development from our package, it initialises all variables inside base since we have to defined below inside

from base import *

Solution 2

Run following command to select settings

python runserver --settings=app_name.settings.development

Leave a Reply

Up ↑

%d bloggers like this: