0
私はGitHubの認証は、これまでのPython-社会-AuthのライブラリPythonの社会的認証ジャンゴのGithubのOAuth
を使用した設定と私のDjangoのウェブサイトに統合しようとしています:
settings.pyを
INSTALLED_APPS += (
...
"social_django",
"social_core",
)
AUTHENTICATION_BACKENDS = [
"account.auth_backends.UsernameAuthenticationBackend",
"social_core.backends.github.GithubOAuth2",
]
TEMPLATES = [
{
...
'context_processors': [
...
"social_django.context_processors.backends",
"social_django.context_processors.login_redirect",
],
},
},
]
login.html
<a href="{% url "social:begin" "GithubOAuth2" %}">Github</a>
urls.py
url("^socialaccounts/", include('social_django.urls', namespace='socialaccounts')),
しかし、私はリンクをクリックしたとき、それは404ページが見つかりませんを示しています。そして私は秘密鍵と他のgithub構成をどこに置くのですか?