我一直在努力在Django项目中使用socialauth实现facebook身份验证。我一直收到这个错误:
NoReverseMatch at /mysite/test
Reverse for 'socialauth_begin' with arguments '(u'facebook',)' and keyword arguments '{}' not found.
Request Method: GET
Request URL: http://127.0.0.1:8000/mysite/test
Django Version: 1.5.1
Exception Type: NoReverseMatch
Exception Value:
Reverse for 'socialauth_begin' with arguments '(u'facebook',)' and keyword arguments '{}' not found.我相信我已经正确地配置了(this guide helped),但是我不知道错误是从哪里来的。
我的模板test.html中的这一行给我带来了问题:
<a href="{% url 'socialauth_begin' 'facebook' %}">Login with Facebook</a>我在网上看了很多地方,都找不到一个合理的解决方案。
发布于 2014-03-17 07:06:49
要使用新的python-social-auth和django > 1.4拯救某人
使用以下命令:
{% url 'social:begin' 'facebook' %}https://stackoverflow.com/questions/16512136
复制相似问题