Importation error in models using Django3
raifran1 opened this issue · 2 comments
raifran1 commented
ERROR IN DJANGO 3
from django.utils.encoding import python_2_unicode_compatible
ImportError: cannot import name 'python_2_unicode_compatible' from 'django.utils.encoding' (/home/raifran/.conda/envs/vaskipedia/lib/python3.7/site-packages/django/utils/encoding.py)
update archive /jet/models.py and replace
old calling
from django.utils.encoding import python_2_unicode_compatible
new calling
try:
from django.utils.encoding import python_2_unicode_compatible
except:
from six import python_2_unicode_compatible # from django3
Barukimang commented
Install jet compatible with Django 3: pip install django-3-jet
raifran1 commented
thank