The error ImportError: cannot import name 'unicode_to_repr' occurs when following import is executed: from fobi.contrib.apps.drf_integration.urls import fobi_router. The unicode_to_repr function was removed from compat module when python 2 compatibility was dropped in django-rest-framework (see here). I am using python 3.5.3, django 2.0.13 and django-rest-framework 3.10.1.
Please review the fix and let's see if everything is okay.
The error
ImportError: cannot import name 'unicode_to_repr'
occurs when following import is executed:from fobi.contrib.apps.drf_integration.urls import fobi_router
. Theunicode_to_repr
function was removed from compat module when python 2 compatibility was dropped in django-rest-framework (see here). I am using python 3.5.3, django 2.0.13 and django-rest-framework 3.10.1.Please review the fix and let's see if everything is okay.