geex-arts/django-jet

Importation error in models using Django3

raifran1 opened this issue · 2 comments

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

Install jet compatible with Django 3: pip install django-3-jet

https://pypi.org/project/django-3-jet/

thank