How to solve SyntaxError on autogenerated manage.py?

前端 未结 30 2191
囚心锁ツ
囚心锁ツ 2020-11-28 08:24

I\'m following the Django tutorial https://docs.djangoproject.com/es/1.10/intro/tutorial01/

I\'ve created a \"mysite\" dummy project (my very first one) and try to

30条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-28 08:43

    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 
    

    else if you have used:

    pip3 install django
    

    then you have to run

    python3 manage.py startapp 
    

    Refer:

提交回复
热议问题