我按照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
不需要任何参数答案 0 :(得分:0)
如果您在settings.py中定义了twitter_redirect
,则只会包含TWITTER_CONSUMER_KEY
网址 - 对不起?