﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
25510	Putting invalid app name in INSTALLED_APPS makes runserver raise django.core.exceptions.AppRegistryNotReady	Sylvain Fankhauser	nobody	"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."	Bug	closed	Core (Other)	1.8	Normal	fixed		me@…	Ready for checkin	1	0	0	0	0	0
