Requested setting INSTALLED_APPS, but settings are not configured. …..DJANGO_SETTINGS_MODULE…..

Python project exception (request to set installed application, but no settings configured). Before accessing settings, you must define the environment variable Django setting module, or call settings. Configure().) :

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.

The solution is as follows:

(1)Run –&> EditConfigures

(2) Find an item in python (Python manage), and then modify the environment variables in it to add an item. The location of the key is Django_ SETTINGS_ Module value is your settingss

Similar Posts: