2

I run my app django in pycharmn when I execute

python manage.py syncdb

I get

@with_metaclass(models.SubfieldBase, skip_attrs=set([
AttributeError: module 'django.db.models' has no attribute 'SubfieldBase'
HK boy
  • 1,398
  • 11
  • 17
  • 25
anna
  • 27
  • 5

1 Answers1

0

SubfieldBase has been deprecated since django 1.10. django.db.models.fields.subclassing.SubfieldBase has been deprecated and will be removed in Django 1.10.. It has been replaced with from_db_value().