The *only* way to successfully execute Django python command is with “python …PATH…django-admin.py [options]”. Why can't it be reduced?

前端 未结 2 801
情深已故
情深已故 2021-01-25 15:27

This is a followup to this question.

The first step in the Django tutorial says to call

django-admin.py startproject mysite

But here is th

相关标签:
2条回答
  • 2021-01-25 15:48

    i got the same problem with django and got the solution at https://docs.djangoproject.com/en/1.7/howto/windows/ . It's mentioned there that if you are using Django 1.7 then we have to write django-admin instead of django-admin.py from our command prompt. hope it helped.

    0 讨论(0)
  • 2021-01-25 15:54

    We have very similar problem but I was able to fix it without having to go through half of your troubleshooting steps.

    Turns out, I have the ;C:\Python34\Scripts\ path present in both User variables for... and System Variables. I may have added the path to user variables accidentally and forgot to delete it.

    Delete the ;C:\Python34\Scripts\ path in your User variables for... and it should fix the problem.

    0 讨论(0)
提交回复
热议问题