0

我已经开始了一个新的 Django 项目,我正在使用 django-allauth + dj-rest-auth 并根据此文档:https ://dj-rest-auth.readthedocs.io/en/latest/installation.html#社会认证可选

我只需要在我的 settings.py 文件中添加它:

INSTALLED_APPS = (
    ...,
    'rest_framework',
    'rest_framework.authtoken',
    'dj_rest_auth'
    ...,
    'django.contrib.sites',
    'allauth',
    'allauth.account',
    'dj_rest_auth.registration',
    ...,
    'allauth.socialaccount',
    'allauth.socialaccount.providers.google',
    'allauth.socialaccount.providers.facebook',
    'allauth.socialaccount.providers.twitter',
)

SITE_ID = 1

现在在我的管理面板上,我看到“社交网络”,当我点击提供商时,我只能看到 Twitter 和 Google,但根本看不到 Facebook。我试图卸载 django-allauth 和 dj-rest-auth。甚至尝试使用以前的版本安装它们,但仍然相同。

每个在 YouTube(或博客)上使用这些软件包并想使用 Facebook 的人都和我一样,他们在列表中得到了“Facebook”。

在此处输入图像描述

出了点问题,但我什至不知道为什么。

4

0 回答 0