Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure( ) before accessing settings.
Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure( ) before accessing settings.
Django needs your application-specific settings. Since it is already inside your manage.py, just use that. The faster, but the perhaps temporary, solution is:
run the code above in the terminal to access the python shell
Register to vote on and add code examples. Join our developer community to improve your dev skills and code like a boss!
No Good?
Help us improve our code examples by registering to vote on and add answers. Join our developer community to improve your dev skills and code like a boss!