python_2_unicode_compatible error
For the latest Django 3.0.4 , and auditlog try
from six import python_2_unicode_compatible
instead of
from django.utils.six import python_2_unicode_compatible
if it is not install run the below code
pip install six
I faced the same issue when I upgraded the Django version 2.x to 3.x.
This issue, I faced due to auditlog
library.
First, execute the below command
pip uninstall auditlog
then
pip install auditlog3
try
from django.utils.six import python_2_unicode_compatible
instead of
from django.utils.encoding import python_2_unicode_compatible
this works well for me in Django 1.10.6
python_2_unicode_compatible
feature has only been added in Django 1.5 version.
https://docs.djangoproject.com/en/dev/ref/utils/#django.utils.encoding.python_2_unicode_compatible