How to solve SyntaxError on autogenerated manage.py?

You can try with python3 manage.py runserver. It works for me.


You should activate your virtual environment. In terminal, source env/bin/activate. Depending on your shell, something like (env) should now be a part of the prompt.

And now runserver should work. No need to delete exc part!


Just activate your virtual environment.


Make sure which python version you connect the django with (Make sure to activate the virtual env if you are using any).

When you install django using just

pip install django 

then you have to run

python manage.py startapp <yourApp name>

else if you have used:

pip3 install django

then you have to run

python3 manage.py startapp <yourapp name>

Refer:
enter image description here