我使用Python 3.3,Django的1.6和Django的註冊1.1Django的登記 「系統登錄還沒有準備好」 的錯誤
我使用setup.py安裝Django的registraiton。我把
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.sites',
'registration',
# ...other installed applications...
)
ACCOUNT_ACTIVATION_DAYS = 7
settings.py中,它應該是
但是當我運行
python manage.py syncdb
我得到一個運行時異常:應用程序的註冊表還沒有準備好
回溯:
...
File "...\registration\models.py, line 15, in <module>
User = get_user_model()
File "...\django\contrib\auth\__init__.py", line 133, in get_user_model
user_model = apps.get_model(app_label, model_name)
File "...\django\apps\registry.py", line 115, in check_ready
raise RuntimeError("App registry isn't ready yet.")
任何人都知道我在做什麼錯了?
我看了看代碼,看到上面的準備此評論檢查
Raises LookupError if no application exists with this label, or no
model exists with this name in the application.
編輯: 安裝Cygwin和試圖讓它在那裏工作,我仍然得到同樣的錯誤後。我將嘗試在我的桌面上安裝,看看會發生什麼。有沒有其他人甚至看過這個?
我希望這很容易,不幸的是我沒有在我的代碼中輸入錯誤。此外,它會有一個失蹤的應用程序錯誤,而不是應用程序未準備好。儘管謝謝您的快速回復!我懷疑這與Windows cmd環境有關。我將嘗試下載cygwin並看看會發生什麼 –