How to solve SyntaxError on autogenerated manage.py?

前端 未结 30 2123
囚心锁ツ
囚心锁ツ 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条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-28 09:01

    I had the exact same error, but then I later found out that I forget to activate the conda environment which had django and other required packages installed.

    Solution: Create a conda or virtual environment with django installed, and activate it before you use the command: $ python manage.py migrate

提交回复
热议问题