0
我想整合django allauth到我的網站,我跟着教程,但是我在使用ElasticBeanStalk服務器時遇到了錯誤,但在本地主機上卻沒有。facebook整合錯誤,django-allauth
Reverse for 'facebook_login' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []
這裏是我的設置:
INSTALLED_APPS = [
...
'django.contrib.sites',
'allauth',
'allauth.account',
'allauth.socialaccount',
'allauth.socialaccount.providers.facebook',
'utilisateur',
]
AUTHENTICATION_BACKENDS = (
# Needed to login by username in Django admin, regardless of `allauth`
'django.contrib.auth.backends.ModelBackend',
# `allauth` specific authentication methods, such as login by e-mail
'allauth.account.auth_backends.AuthenticationBackend',
)
SITE_ID = 1
LOGIN_REDIRECT_URL = '/'
SOCIALACCOUNT_PROVIDERS = {
'facebook': {
'SCOPE': ['email'],
'AUTH_PARAMS': {'auth_type': 'reauthenticate'},
'METHOD': 'oauth2',
'VERIFIED_EMAIL': False,
}
}
urls.py:
url(r'^accounts/', include('allauth.urls')),
該錯誤只提高在頁面上:「MYDOMAIN /賬戶/ LO杜松子酒/'當註銷時,也沒有鏈接'臉譜/登錄/'在本地主機上。
我已經使用ElasticBeanStalk URL配置了facebook應用程序。
任何幫助將不勝感激,我現在已經有一段時間了,我該如何解決這個問題?