Django 1.10 issue with python-social-auth



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

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

解决方案是什么?

django-social-auth 现在是一个不推荐使用的变体,链接描述为:

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-auth,有一节是关于如何将python-social-authdjango-social-auth集成的,如果你想在生产中使用代码,建议使用。

最新更新