1👍
✅
In the original settings.py
, at the very end:
try:
from settings_dev import *
except ImportError:
pass
Create settings_dev.py
in the same directory as settings.py
, and in it, add these two lines at the very top:
import sys
globals().update(vars(sys.modules['settings']))
Now add whatever development settings you want in this file.
6👍
Make sure while passing relative address of file to use “.” instead of “/”.
I faced the same error what I actually did
“music/urls”
But it should be
“music.urls”
1👍
I had similar error in runserver command execution and finally I’ve found that this error raises because of python version incompatibility by the django version installed. There is two versions of python on my system and I had running django server by the wrong one. Hope it could be helpful to someone.
Source:stackexchange.com