2016-08-03 7 views
0

私は自分のウェブサイトにdjango allauthを統合したいが、私はチュートリアルに従ったが、ElasticBeanStalkサーバーを使用しているがlocalhostでは使用していない間にエラーが発生している。ここでfacebook integration error、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')), 

enter image description here

このエラーは、ページに上げる:「MyDomainの/アカウント/ lo gin/'をログアウトすると、localhostと同様に' facebook/login/'のリンクもありません。

すでにElasticBeanStalk URLでFacebookアプリケーションを設定しました。

何か助けていただければと思いますが、私はしばらくの間この問題を解決できますか?

答えて

0

別の投稿で答えが見つかりました:allauthが依存するFacebook SDKのeggは、WebサーバーのElasticBeanStalkにありませんでした。

詳しくは、次の記事をご覧ください。using django-allauth