#34163: ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are
not configured
-------------------------------+--------------------------------------
     Reporter:  zic13          |                    Owner:  nobody
         Type:  Bug            |                   Status:  closed
    Component:  Uncategorized  |                  Version:  4.1
     Severity:  Normal         |               Resolution:  invalid
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

 * status:  new => closed
 * resolution:   => invalid
 * severity:  Release blocker => Normal


Old description:

> I have tried everything to resolve this issue. Still its not resolving .
> I did makemigrtions ,migrate user modules are loading . I will add my
> traceback below for reference.
>
>  from adam.common.common import check_database_exists
>   File "/home/finq/review/106_review/adam/adam/common/common.py", line 9,
> in <module>
>     from adam.graphical_user_interface.db_graphical_user_interface.models
> import UserLogin
>   File
> "/home/finq/review/106_review/adam/adam/graphical_user_interface/db_graphical_user_interface/models.py",
> line 5, in <module>
>     class UserLogin(models.Model):
>   File "/home/finq/miniconda3/envs/adam/lib/python3.10/site-
> packages/django/db/models/base.py", line 127, in __new__
>     app_config = apps.get_containing_app_config(module)
>   File "/home/finq/miniconda3/envs/adam/lib/python3.10/site-
> packages/django/apps/registry.py", line 260, in get_containing_app_config
>     self.check_apps_ready()
>   File "/home/finq/miniconda3/envs/adam/lib/python3.10/site-
> packages/django/apps/registry.py", line 137, in check_apps_ready
>     settings.INSTALLED_APPS
>   File "/home/finq/miniconda3/envs/adam/lib/python3.10/site-
> packages/django/conf/__init__.py", line 87, in __getattr__
>     self._setup(name)
>   File "/home/finq/miniconda3/envs/adam/lib/python3.10/site-
> packages/django/conf/__init__.py", line 67, in _setup
>     raise ImproperlyConfigured(
> 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.

New description:

 I have tried everything to resolve this issue. Still its not resolving . I
 did makemigrtions ,migrate user modules are loading . I will add my
 traceback below for reference.
 {{{
  from adam.common.common import check_database_exists
   File "/home/finq/review/106_review/adam/adam/common/common.py", line 9,
 in <module>
     from adam.graphical_user_interface.db_graphical_user_interface.models
 import UserLogin
   File
 
"/home/finq/review/106_review/adam/adam/graphical_user_interface/db_graphical_user_interface/models.py",
 line 5, in <module>
     class UserLogin(models.Model):
   File "/home/finq/miniconda3/envs/adam/lib/python3.10/site-
 packages/django/db/models/base.py", line 127, in __new__
     app_config = apps.get_containing_app_config(module)
   File "/home/finq/miniconda3/envs/adam/lib/python3.10/site-
 packages/django/apps/registry.py", line 260, in get_containing_app_config
     self.check_apps_ready()
   File "/home/finq/miniconda3/envs/adam/lib/python3.10/site-
 packages/django/apps/registry.py", line 137, in check_apps_ready
     settings.INSTALLED_APPS
   File "/home/finq/miniconda3/envs/adam/lib/python3.10/site-
 packages/django/conf/__init__.py", line 87, in __getattr__
     self._setup(name)
   File "/home/finq/miniconda3/envs/adam/lib/python3.10/site-
 packages/django/conf/__init__.py", line 67, in _setup
     raise ImproperlyConfigured(
 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.
 }}}

--

Comment:

 Please don't use Trac as a support channel. Closing per
 TicketClosingReasons/UseSupportChannels.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34163#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701847f341704-ce6c3aab-a435-4b16-ad14-ef1302ac7ea9-000000%40eu-central-1.amazonses.com.

Reply via email to