使用django-socialregistration在Twitter身份验证上的NoReverseMatch

时间:2011-02-13 21:54:44

标签: django twitter twitter-oauth

我按照https://github.com/flashingpumpkin/django-socialregistration上的说明为我的小 django应用获取了Twitter身份验证。

我唯一不确定的是网址必须去的地方,所以我添加了我的网址模式。

('^$', 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

不需要任何参数

1 个答案:

答案 0 :(得分:0)

如果您在settings.py中定义了twitter_redirect,则只会包含TWITTER_CONSUMER_KEY网址 - 对不起?