這裏是我的設置模擬AUTH_USER_MODEL指到 '%s' 尚未安裝」%settings.AUTH_USER_MODEL
########## APP CONFIGURATION
DJANGO_APPS = (
# Default Django apps:
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
# Useful template tags:
# 'django.contrib.humanize',
# Admin panel and documentation:
'django.contrib.admin',
# 'django.contrib.admindocs',
)
THIRD_PARTY_APPS = (
'south',
'colorful',
#'grappelli',
'django_extensions',
#'rest_framework',
#'sorl.thumbnail',
'guardian',
'sslserver',
'djangosecure',
'django_nose',
)
# Apps specific for this project go here.
LOCAL_APPS = (
'main',
'executor',
'workshop',
'management',
)
這裏是我的加載Python應用程序:
Django < 1.7
South === 1.0
django-colorful
django-extensions == 1.5.2
django-mptt == 0.7.4
loremipsum < 1.0.4
django_debug_toolbar
werkzeug == 0.11.4
Pillow == 3.1.1
MySQL-python
xlwt
xlrd
django-guardian == 1.3.2
lxml
fabric
django-fab-deploy
django-secure === 1.0.1
django-sslserver === 0.15
python-ldap === 2.4.19
django_auth_ldap
html2text
htmlentities
openpyxl
raven
colorful
ipython == 4.1.1
django-nose
newrelic
我有做無代碼更改,現在我不能創建或更新實例,我將在服務器收到此錯誤信息:
File "/srv/www/lohja/targetor/env/local/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 129, in get_user_model
[[email protected]] out:
raise ImproperlyConfigured("AUTH_USER_MODEL refers to model '%s' that has not been installed" % settings.AUTH_USER_MODEL)
[[email protected]] out:
django.core.exceptions.ImproperlyConfigured: AUTH_USER_MODEL refers to model 'executor.ExecutorUser' that has not been installed
[[email protected]] out:
Fatal error: run() received nonzero return code 1 while executing!
Requested: /srv/www/lohja/targetor/env/bin/python /srv/www/lohja/targetor/manage.py migrate --fake --no-initial-data guardian --settings=settings.local_setti$
Executed: /bin/bash -l -c "cd /srv/www/lohja/targetor/env/bin/ && . /srv/www/lohja/targetor/env/bin/activate && /srv/www/lohja/targetor/env/bin/python /srv/w$
Aborting.
我GUE ss在python應用程序中會發生一些變化,它會出現這個錯誤。但我無法找到我必須使用的某些應用程序的版本。我已經有這樣的問題,但設法解決這些問題。現在,我找不到原因......是否有其他人解決這個問題?
'executor.ExecutorUser'未找到 –
* actual * INSTALLED_APPS設置在哪裏?它是否結合了所有的DJANGO_APPS,THIRD_PARTY_APPS和LOCAL_APPS? –
#參見:https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS ########## END APP CONFIGURATION – maikkma