0
내가 Github에서 인증 지금까지 파이썬 사회 인증 라이브러리파이썬 사회 인증 장고 Github의 OAuth를
구성하여 내 장고 웹 사이트를 통합하기 위해 노력하고있어 :
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 구성은 어디에 두어야합니까?