close

How to solve SyntaxError on autogenerated manage.py?

Hello Guys, How are you all? Hope You all Are Fine. Today We Are Going To learn about How to solve SyntaxError on autogenerated manage.py in Python. So Here I am Explain to you all the possible Methods here.

Without wasting your time, Let’s start This Article.

Table of Contents

How to solve SyntaxError on autogenerated manage.py?

  1. How to solve SyntaxError on autogenerated manage.py?

    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.

  2. SyntaxError on autogenerated manage.py

    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.

Method 1

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:

Method 2

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!

Summery

It’s all About this issue. Hope all Methods helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which Method worked for you? Thank You.

Also, Read