gpt4 book ai didi

python - 使用 Django 1.11 和 Python 3.6 将 Social_auth 迁移到 django_social

转载 作者:行者123 更新时间:2023-12-01 02:29:39 25 4
gpt4 key购买 nike

我在尝试使用 Django 1.11 和 Python 3.6 将 Social_auth 模块迁移到 django_social 时遇到问题。我的 models.py 文件中有一些使用

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

但我在 django_social 中找不到与 social_auth.signals 等效的内容

它们已被弃用吗?有更新的版本可以使用它们吗?

最佳答案

根据signals.py从过去的版本中的文件来看,信号似乎已被弃用并且不再使用。

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

关于python - 使用 Django 1.11 和 Python 3.6 将 Social_auth 迁移到 django_social,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46981207/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com