django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. plz help me out plz

Seems like you didn’t define DJANGO_SETTINGS_MODULE which results in undefined settings. INSTALLED_APPS at this point is the first setting that Django wants to look up, resulting in the given error.

With a default project creation the created manage.py defines said environment variable and if you run python manage.py runserver the settings are defined.

Also see the according docs.

However since with your setup these settings aren’t defined: Set an environment variable DJANGO_SETTINGS_MODULE pointing to your settings.py. Also see the docs for this.

Leave a Comment