Django Error-django.core.exceptions.ImproperlyConfigured: 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.


Want to work as Freelancer, check this out :

I also found this error on stack overflow.

The answer which solved my problem is

export DJANGO_SETTINGS_MODULE=mysites.settingshere, mysites is name of Django project where is available

paste the above line in bash shell before running standalone python script



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store