#25510: Putting invalid app name in INSTALLED_APPS makes runserver raise django.core.exceptions.AppRegistryNotReady ------------------------------+-------------------- Reporter: sephii | Owner: nobody Type: Bug | Status: new Component: Core (Other) | Version: 1.8 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 ------------------------------+-------------------- If you put an app that can't be imported in INSTALLED_APPS and then run the {{{runserver}}} command, you get the following exception:
{{{ #!text/x-python-traceback Traceback (most recent call last): File "./manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/home/sylvain/.virtualenvs/tmp- 89f7042ac871db52/local/lib/python2.7/site- packages/django/core/management/__init__.py", line 351, in execute_from_command_line utility.execute() File "/home/sylvain/.virtualenvs/tmp- 89f7042ac871db52/local/lib/python2.7/site- packages/django/core/management/__init__.py", line 343, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/sylvain/.virtualenvs/tmp- 89f7042ac871db52/local/lib/python2.7/site- packages/django/core/management/__init__.py", line 177, in fetch_command commands = get_commands() File "/home/sylvain/.virtualenvs/tmp- 89f7042ac871db52/local/lib/python2.7/site- packages/django/utils/lru_cache.py", line 101, in wrapper result = user_function(*args, **kwds) File "/home/sylvain/.virtualenvs/tmp- 89f7042ac871db52/local/lib/python2.7/site- packages/django/core/management/__init__.py", line 72, in get_commands for app_config in reversed(list(apps.get_app_configs())): File "/home/sylvain/.virtualenvs/tmp- 89f7042ac871db52/local/lib/python2.7/site- packages/django/apps/registry.py", line 137, in get_app_configs self.check_apps_ready() File "/home/sylvain/.virtualenvs/tmp- 89f7042ac871db52/local/lib/python2.7/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. }}} Other commands such as migrate or check correctly raise an ImportError. -- Ticket URL: <https://code.djangoproject.com/ticket/25510> 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/049.380e470e7c4ab7ac3c42e2e2e224a267%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.