我按照https://github.com/flashingpumpkin/django-socialregistration上的说明为我的小django 应用程序获取 twitter 身份验证。
我唯一不确定的是 url 必须去哪里,所以我添加了我的 url 模式。
('^$', include('socialregistration.urls')),
现在,我得到:
TemplateSyntaxError at /
Caught NoReverseMatch while rendering: Reverse for 'twitter_redirect' with arguments '()' and keyword arguments '{}' not found.
这很奇怪,因为 socialregistration.urls 不需要任何参数,如https://github.com/flashingpumpkin/django-socialregistration/blob/master/socialregistration/urls.py