django manage.py runserver error in ubuntu

when i run django mange.py runserver commond
it giving me an Syntax error in line 17.

It’s trying to run Django under Python version 2. You need to be running Python 3.

1 Like

Yes, it solved my issue

I see this error if I forget to activate my virtualenv. A lot of Ubuntu installations will come pre-installed with Python 2.7.x so if you don’t activate your virtualenv, Django will default to using the system-wide installation of Python.

Whenever I use Django I have to use python3 to run my commonds.