how to successfully start the server in django?

63 Views Asked by At

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)
0

There are 0 best solutions below