Django 1.10 issue with python-social-auth

1.2k views Asked by At

I am trying to use django-social-auth in one of my project. However migrate command ends with this error:

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

What could be the solution?

1

There are 1 answers

0
Renjith Thankachan On

django-social-auth is a DEPRECATED variant now, the link describes as,

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

Use python-social-auth, there is a section on how to integrate python-social-auth with django-social-auth, it is recommended if you want to use the code in production.