#25634: AppRegistryNotReady Error
-------------------------------+--------------------------------------
     Reporter:  wide-awake     |                    Owner:  nobody
         Type:  Uncategorized  |                   Status:  new
    Component:  Uncategorized  |                  Version:  1.9b1
     Severity:  Normal         |               Resolution:
     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 wide-awake):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Old description:

> Migrating my project from 1.8.5 to 1.9b1 cause next traceback:
>

> {{{
> Traceback (most recent call last):
>   File "/Users/.../manage.py", line 10, in <module>
>     execute_from_command_line(sys.argv)
>   File "/Users/.../env3/lib/python3.5/site-
> packages/django/core/management/__init__.py", line 350, in
> execute_from_command_line
>     utility.execute()
>   File "/Users/.../env3/lib/python3.5/site-
> packages/django/core/management/__init__.py", line 342, in execute
>     self.fetch_command(subcommand).run_from_argv(self.argv)
>   File "/Users/.../env3/lib/python3.5/site-
> packages/django/core/management/__init__.py", line 176, in fetch_command
>     commands = get_commands()
>   File "/Users/.../env3/lib/python3.5/site-
> packages/django/core/management/__init__.py", line 71, in get_commands
>     for app_config in reversed(list(apps.get_app_configs())):
>   File "/Users/.../env3/lib/python3.5/site-
> packages/django/apps/registry.py", line 137, in get_app_configs
>     self.check_apps_ready()
>   File "/Users/.../env3/lib/python3.5/site-
> packages/django/apps/registry.py", line 124, in check_apps_ready
>     raise AppRegistryNotReady("Apps aren't loaded yet.")
> django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
>
> Process finished with exit code 1
>
> }}}

New description:

 Migrating my project from 1.8.5 to 1.9b1 cause next traceback, when
 running server:

 {{{
 Traceback (most recent call last):
   File "/Users/.../manage.py", line 10, in <module>
     execute_from_command_line(sys.argv)
   File "/Users/.../env3/lib/python3.5/site-
 packages/django/core/management/__init__.py", line 350, in
 execute_from_command_line
     utility.execute()
   File "/Users/.../env3/lib/python3.5/site-
 packages/django/core/management/__init__.py", line 342, in execute
     self.fetch_command(subcommand).run_from_argv(self.argv)
   File "/Users/.../env3/lib/python3.5/site-
 packages/django/core/management/__init__.py", line 176, in fetch_command
     commands = get_commands()
   File "/Users/.../env3/lib/python3.5/site-
 packages/django/core/management/__init__.py", line 71, in get_commands
     for app_config in reversed(list(apps.get_app_configs())):
   File "/Users/.../env3/lib/python3.5/site-
 packages/django/apps/registry.py", line 137, in get_app_configs
     self.check_apps_ready()
   File "/Users/.../env3/lib/python3.5/site-
 packages/django/apps/registry.py", line 124, in check_apps_ready
     raise AppRegistryNotReady("Apps aren't loaded yet.")
 django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.

 Process finished with exit code 1

 }}}

 And my manage.py is pretty simple:

 {{{
 #!/usr/bin/env python
 import os
 import sys

 if __name__ == "__main__":
     os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.base")

     from django.core.management import execute_from_command_line

     execute_from_command_line(sys.argv)
 }}}

--

--
Ticket URL: <https://code.djangoproject.com/ticket/25634#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 post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.cc4e4bf924a095ff83edbdc84c2e8352%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to