I have an app, Scaffold, installed, that runs perfectly when I use python manage.py runserver
but when I try to start it using django-admin, it fails;
You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
I try calling it with django-admin migrate --settings=scaffold.settings
And I get; ImportError: No module named scaffold.settings
I've tried multiple things, googled around, but can't seem to figure out what I need to change. The settings.py file is in the directory ..scaffold but I am no longer certain that is the one I need to use.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…