0

我按照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

4

1 回答 1

0

看起来twitter_redirect只有当您在 settings.py 中定义了一个 url 时才会包含该 url TWITTER_CONSUMER_KEY- 有吗?

于 2011-02-13T22:18:31.577 回答