Python Django Rising AppRegistryNotReady在从更新到1.9之后

Python Django Rising AppRegistryNotReady在从更新到1.9之后,python,django,django-1.9,Python,Django,Django 1.9,我读过很多类似的帖子,都有相同的情况,如果有关联的话,我会尝试一些建议。我刚刚更新到Django 1.9,我收到了以下回溯: Traceback (most recent call last): File "manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/opt/django/www/local/lib/python2.7/site-packages/django/

我读过很多类似的帖子,都有相同的情况,如果有关联的话,我会尝试一些建议。我刚刚更新到Django 1.9,我收到了以下回溯:

Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/opt/django/www/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 350, in execute_from_command_line
    utility.execute()
  File "/opt/django/www/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 302, in execute
    settings.INSTALLED_APPS
  File "/opt/django/www/local/lib/python2.7/site-packages/django/conf/__init__.py", line 55, in __getattr__
    self._setup(name)
  File "/opt/django/www/local/lib/python2.7/site-packages/django/conf/__init__.py", line 43, in _setup
    self._wrapped = Settings(settings_module)
  File "/opt/django/www/local/lib/python2.7/site-packages/django/conf/__init__.py", line 99, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/opt/django/www/src/site_aggrigator/__init__.py", line 2, in <module>
    import management
  File "/opt/django/www/src/site_aggrigator/management/__init__.py", line 4, in <module>
    from django.contrib.auth.models import Permission
  File "/opt/django/www/local/lib/python2.7/site-packages/django/contrib/auth/models.py", line 4, in <module>
    from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager
  File "/opt/django/www/local/lib/python2.7/site-packages/django/contrib/auth/base_user.py", line 49, in <module>
    class AbstractBaseUser(models.Model):
  File "/opt/django/www/local/lib/python2.7/site-packages/django/db/models/base.py", line 94, in __new__
    app_config = apps.get_containing_app_config(module)
  File "/opt/django/www/local/lib/python2.7/site-packages/django/apps/registry.py", line 239, in get_containing_app_config
    self.check_apps_ready()
  File "/opt/django/www/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.
一个职位提供了以下解决方案:
已安装的应用程序=(
“django.contrib.auth.models.Permission”,

我也按照他们说的那样做了,这将是一个可行的解决方案。还有其他人有这个问题吗?

尝试添加这个(在声明密钥之后):


嗯,它似乎越过了上一个错误,但现在它进入了运行时错误:模型类django.contrib.contenttypes.models.ContentType没有声明显式的应用程序标签,或者不在已安装的应用程序中,或者在加载应用程序之前导入了。再次。我尝试添加了
django.contrib.contenttypes。models.ContentType
到我的
已安装的_应用程序
尝试将'django.contrib.contenttypes'移动到已安装的_应用程序的顶部..没有运气:再次尝试移动已移动的导入django django.setup()到安装后的\u appsProgress!现在从django.db.models.signals导入post\u syncdb ImportError:无法导入name post\u syncdb
/opt/django/www/local/lib/python2.7/site-packages/Django-1.8-py2.7.egg/django/contrib/auth/models.py:41: RemovedInDjango19Warning: Model class django.contrib.auth.models.Permission doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded. This will no longer be supported in Django 1.9.
  class Permission(models.Model):
import django
django.setup()