[英]Migrating social_auth to django_social using Django 1.11 and Python 3.6
嘗試使用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
等效的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.
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.