这是来自apache2-server错误日志:
File "/srv/www/maikkma/targetor/env/local/lib/python2.7/site-packages/
south/management/commands/__init__.py", line 10, in <module>
[targetor_upgrade@targetorpro.fi] out:
import django.template.loaders.app_directories
[targetor_upgrade@targetorpro.fi] out:
File "/srv/www/maikkma/targetor/env/local/lib/python2.7/site-packages/
django/template/loaders/app_directories.py", line 25, in <module>
raise ImproperlyConfigured('ImportError %s: %s' % (app, e.args[0]))
[targetor_upgrade@targetorpro.fi] out:
django.core.exceptions.ImproperlyConfigured:
ImportError guardian: cannot import name register
[targetor_upgrade@targetorpro.fi] out:
Fatal error: run() received nonzero return code 1 while executing!
Requested: /srv/www/maikkma/targetor/env/bin/python
/srv/www/maikkma/targetor/manage.py
migrate --all --no-initial-data --settings=settings.local_settings
Executed: /bin/bash -l -c "cd /srv/www/maikkma/targetor/env/bin/ &&
. /srv/www/maikkma/targetor/env/bin/activate &&
/srv/www/maikkma/targetor/env/bin/python /srv/www/mai$
这个django-guardian是第三方应用程序,我认为这个丢失的注册表是一个django-admin模块?
我如何解决此错误?我无法通过谷歌找到任何解决方案
答案 0 :(得分:0)
我找到了问题的答案。我的django版本号是1.6.1,这个最新的django-guardian(1.4.0或更新版本)需要django 1.7或更新。