升级Django和allauth在/ accounts / profile /返回KeyError

时间:2016-02-13 19:19:35

标签: django upgrade init django-allauth keyerror

我从Django 1.7.1升级到1.9,同时升级了allauth。升级后我不得不修复许多错误,但是这个错误让我感到困惑。一切正常,但是provider_login_url ..如果我从模板中删除它正常呈现的网址,但我无法链接到网址...

错误:

KeyError at /accounts/profile/

Django Version: 1.9.2
Exception Type: KeyError
Exception Value:    
'facebook'
/allauth/socialaccount/providers/__init__.py in by_id, line 20

Error during template rendering
allauth/templates/account/profile.html, error at line 68

68 .. <a href="{% provider_login_url "facebook" process="connect" %}" class="edit_profile_link">Connect this account with my Facebook account</a>

的观点:

def profile(request):
    return render_to_response("account/profile.html",locals(),context_instance=RequestContext(request))

0 个答案:

没有答案