Getting error cannot import name 'six' from 'django.utils' when using Django 3.0.0 latest version

前端 未结 5 1844
梦毁少年i
梦毁少年i 2020-12-10 13:18

Currently I have upgraded version of Django 2.2 to 3.0 and suddenly getting error like below.

ImportError: cannot import name \'six\' from \'django.ut

5条回答
  •  轮回少年
    2020-12-10 14:09

    A specified in Django 3.0 release note, django.utils.six is removed. In case you need it, it is advised to use pypi packages instead

    In your case, jsonfield package might be replaced by native Django's JSON Field. Another solution would be to fork jsonfield package yourself to solve you issue, or to make a PR on project's repo'

提交回复
热议问题