2

Django プロジェクトでsocialauthを使用して Facebook 認証を実装するのに苦労しています。このエラーが発生し続けます:

NoReverseMatch at /mysite/test
Reverse for 'socialauth_begin' with arguments '(u'facebook',)' and keyword arguments '{}' not found.
Request Method: GET
Request URL:    http://127.0.0.1:8000/mysite/test
Django Version: 1.5.1
Exception Type: NoReverseMatch
Exception Value:    
Reverse for 'socialauth_begin' with arguments '(u'facebook',)' and keyword arguments '{}' not found.

socialauth を正しく構成したと思います(このガイドが役に立ちました)が、エラーの原因がどこにあるのかわかりません。

私のテンプレートtest.htmlのこの行は私に問題を与えています:

<a href="{% url 'socialauth_begin' 'facebook' %}">Login with Facebook</a>

私はオンラインで多くの場所を見てきましたが、合理的な解決策を見つけることができませんでした.

4

1 に答える 1