【问题标题】:Migrating social_auth to django_social using Django 1.11 and Python 3.6使用 Django 1.11 和 Python 3.6 将 social_auth 迁移到 django_social
【发布时间】:2023-03-07 10:05:01
【问题描述】:

我在尝试使用 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 等效的内容

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

【问题讨论】:

    标签: python django python-social-auth django-socialauth


    【解决方案1】:

    根据过去修订版中的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.
    

    【讨论】:

    • 谢谢,那我去看看新的流水线方法
    猜你喜欢
    • 2018-01-09
    • 2018-04-13
    • 2021-05-18
    • 2018-05-18
    • 2017-10-11
    • 1970-01-01
    • 2017-12-08
    • 2018-11-04
    相关资源
    最近更新 更多