Can't start accounts app using django-userena

ⅰ亾dé卋堺 提交于 2019-12-11 03:19:04

问题


Tried to install django-userena, and when launching

python manage.py startapp polls

I get the userena.compat.SiteProfileNotAvailable error.

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 version 1.7.7, userena - 1.4.0


回答1:


I solved the problem by uninstalling userena, creating accounts app, editing accounts/models.py file and only then installing userena. Worked out perfectly



来源:https://stackoverflow.com/questions/29362003/cant-start-accounts-app-using-django-userena

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!