modesl.py has python_2_unicode_compatible import from django.utils. Need to update that as a part of django 3 upgrade.
sol: replace: from django.utils.encoding import python_2_unicode_compatible line with: from six import python_2_unicode_compatible
comment from djagno release note:
Removed private Python 2 compatibility APIs
django.utils.encoding.python_2_unicode_compatible() - Alias of six.python_2_unicode_compatible().
modesl.py has
python_2_unicode_compatibleimport fromdjango.utils. Need to update that as a part of django 3 upgrade.sol: replace:
from django.utils.encoding import python_2_unicode_compatibleline with:from six import python_2_unicode_compatiblecomment from djagno release note:
Removed private Python 2 compatibility APIs
django.utils.encoding.python_2_unicode_compatible()- Alias ofsix.python_2_unicode_compatible().