我正在将 django-allauth 与应用引擎一起使用,当我将 login_required 装饰器添加到我的视图时,我收到以下错误:Reverse for 'facebook_login' with arguments '()' and keyword arguments '{}' not found。完整的追溯在这里:http ://slexy.org/view/s20Zs7JvFl
我的设置:
TEMPLATE_CONTEXT_PROCESSORS = (...,
"allauth.account.context_processors.account",
“allauth.socialaccount.context_processors.socialaccount”,
)
AUTHENTICATION_BACKENDS = (
"django.contrib.auth.backends.ModelBackend",
"allauth.account.auth_backends.AuthenticationBackend",
)
INSTALLED_APPS = (
...,
'allauth',
'allauth.account',
'allauth.socialaccount',
'allauth.socialaccount.providers.facebook',
)
我可能想念一些愚蠢的事情。我应该怎么做才能向前迈出一步?谢谢,亚历克斯