0

Whenever I put the command python manage.py runserver and it throws an error.

    from django.utils.encoding import python_2_unicode_compatible
ImportError: cannot import name 'python_2_unicode_compatible' from 'django.utils.encoding' (C:\JavaScript\DR_BRO\backend\venv\Lib\site-packages\django\utils\encoding.py)

I was trying to run the server in Django. But it's thorough an error like

    from django.utils.encoding import python_2_unicode_compatible
ImportError: cannot import name 'python_2_unicode_compatible' from 'django.utils.encoding' (C:\JavaScript\DR_BRO\backend\venv\Lib\site-packages\django\utils\encoding.py)
Vukašin Manojlović
  • 3,717
  • 3
  • 19
  • 31

0 Answers0