django-social-auth app not working under virtualenv

最后都变了- 提交于 2020-01-25 12:12:45

问题


I shifted my django project to a virtualenv. I installed django-social-auth library using pip. I copied the same files that were working outside virtualenv to the new environment, but I am getting a

Caught NoReverseMatch while rendering: Reverse for 'begin' with arguments '(u'facebook',)' and keyword arguments '{}' not found.

I am able to import social_auth library in the django shell and social_auth is included in INSTALLED_APPS and its urls are present in the urls.py file.

What mistake can I be making ?


回答1:


When you are installing django-social-auth with pip, then all socialauth urls must contain the prefix "socialauth_" . The issue is discussed on github.



来源:https://stackoverflow.com/questions/7004398/django-social-auth-app-not-working-under-virtualenv

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