与python-social-auth的Django 1.10问题

时间:2016-12-20 10:20:15

标签: django python-social-auth

我正在尝试在我的一个项目中使用django-social-auth。 但是,migrate命令以此错误结束:

class JSONField(six.with_metaclass(models.SubfieldBase, models.TextField)):
AttributeError: 'module' object has no attribute 'SubfieldBase'

可能是什么解决方案?

1 个答案:

答案 0 :(得分:0)

django-social-auth现在是DEPRECATED变体,链接描述为,

NOTE: THIS LIBRARY IS DEPRECATED IN FAVOR OF python-social-auth.  
RIGHT NOW THIS LIBRARY DEPENDS DIRECTLY ON python-social-auth AND  
SHOULD BE  CONSIDERED AS A MIGRATION STEP

使用python-social-authpython-social-auth如何将django-social-authSphinxSearch进行整合,如果您想在生产中使用该代码,建议使用section