django.core.exceptions.AppRegistryNotReady:尚未加载应用程序django 1.9

时间:2015-12-22 16:31:36

标签: django python-3.x

我在Windows 7上使用Django 1.9。

当我执行时 ' python manage.py runserver' 我收到以下错误

Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "C:\Python34\lib\site-packages\django\core\management\__init__.py", line
350, in execute_from_command_line
    utility.execute()
  File "C:\Python34\lib\site-packages\django\core\management\__init__.py", line
342, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Python34\lib\site-packages\django\core\management\__init__.py", line
176, in fetch_command
    commands = get_commands()
  File "C:\Python34\lib\functools.py", line 448, in wrapper
    result = user_function(*args, **kwds)
  File "C:\Python34\lib\site-packages\django\core\management\__init__.py", line
71, in get_commands
    for app_config in reversed(list(apps.get_app_configs())):
  File "C:\Python34\lib\site-packages\django\apps\registry.py", line 137, in get
_app_configs
    self.check_apps_ready()
  File "C:\Python34\lib\site-packages\django\apps\registry.py", line 124, in che
ck_apps_ready
    raise AppRegistryNotReady("Apps aren't loaded yet.")
django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.

如何解决这个问题?

0 个答案:

没有答案