问题描述
尝试安装django-userena,当启动
Tried to install django-userena, and when launching
python manage.py startapp polls
我得到userena.compat.SiteProfileNotAvailable错误。
I get the userena.compat.SiteProfileNotAvailable error.
所以这是很奇怪。
首先,官方的Django文档声称会删除AUTH_PROFILE_MODULE设置:。
但是如果找不到AUTH_PROFILE_MODULE设置,则/usr/local/lib/python2.7/dist-packages/userena/utils.py会引发此错误。这是否意味着我不能使用userena,除非我降级到1.6或更低版本?
So this is very odd.First of all, official Django docs claims to depricate AUTH_PROFILE_MODULE setting : https://docs.djangoproject.com/en/1.7/releases/1.7/.But /usr/local/lib/python2.7/dist-packages/userena/utils.py raises this error if it can't find AUTH_PROFILE_MODULE setting. Does it mean I can't use userena unless I downgrade to versions 1.6 or lower?
其次,我还没有创建任何模型,所以我应该有哪个配置文件开始应用程序时一直在寻址?
Secondly, I haven't created any models yet, so which profile I should have been addressing when starting app?
Django版本1.7.7,userena - 1.4.0
Django version 1.7.7, userena - 1.4.0
推荐答案
我通过卸载userena,创建帐户应用程序,编辑帐户/ models.py文件,然后安装userena来解决问题。
完美完成
I solved the problem by uninstalling userena, creating accounts app, editing accounts/models.py file and only then installing userena.Worked out perfectly
这篇关于无法使用django-userena启动帐户应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!