Skip to content Skip to sidebar Skip to footer

Django Could Not Import Settings

I once wrote an django app, named superlists, and settings was in superlists.settings. It was for tutorial, and I was changing differnt settings, little realizing what I was doing.

Solution 1:

It turned out that I created new environment system variable DJANGO_SETTINGS_MODULE. So evident, but it almost cost me sanity.

Solution 2:

Change the environment variable from

DJANGO_SETTINGS_MODULE=superlist.superlist.settings

To DJANGO_SETTINGS_MODULE=superlist.settings

or use an __init__.py in superlist

Post a Comment for "Django Could Not Import Settings"