使用Django 1.11和Python 3.6将social_auth迁移到Django_social

2024-04-20 11:07:28 发布

您现在位置:Python中文网/ 问答频道 /正文

我在尝试使用django 1.11和Python 3.6将social_auth模块迁移到django_social时遇到问题。我的房间里有一些模型型号.py使用的文件

from social_auth.signals import pre_update, socialauth_registered
from social_auth.backends.facebook import FacebookBackend
from social_auth.backends.twitter import TwitterBackend

但是我找不到social_auth.signalsdjango_social的等价物

他们不赞成吗?有新的版本可以使用吗?你知道吗


Tags: 模块文件djangofrompy模型importauth
1条回答
网友
1楼 · 发布于 2024-04-20 11:07:28

根据过去版本中的^{}文件,信号似乎已被弃用,不再使用。你知道吗

# This module is deprecated, this signals aren't used by the code anymore
# and it's functionality should be replaced by pipeline methods.

相关问题 更多 >