找不到命令:django-admin.py [英] Command not found: django-admin.py

查看:638
本文介绍了找不到命令:django-admin.py的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个完整的Python / Django初学者,但是我想要潜水,开始尝试。因此,我正在遵循本指南安装Python / Django http://devcenter.heroku.com/articles/django



一切都正常,直到步骤



django-admin.py startproject hellodjango



我在哪里获得



命令找不到:django -admin.py



现在我已经尝试了一些事情,但没有一个确实有效果。有没有人可以指出我正确的方向?



P.S。在Mac上运行Python / Django本地运行和测试应用程序有没有一个很好的指南?



我在Mac OS X Lion,Python 2.7。 / p>

解决方案

实际上,如果你使用Ubuntu,它只是 django-admin django-admin.py



驻留在 / usr / bin

在Mac上可能是一样的。

您正在使用Windows教程。



它也可以告诉你

  python manage.py runserver 

这实际上是

  python ./manage.py runserver 


I am a complete beginner to Python/Django, but I want to dive right in and start experimenting. Thus I was following this guide on installing Python/Django http://devcenter.heroku.com/articles/django.

Everything is working fine until the step

django-admin.py startproject hellodjango

Where I get

command not found: django-admin.py

Now I have tried a few things, but none have really worked out. Is there someone kind enough to point me in the right direction?

P.S. Is there a great guide out there on running Python/Django locally on a Mac to run and test apps?

I'm on Mac OS X Lion, Python 2.7.

解决方案

Actually, if you use Ubuntu, it's just django-admin not django-admin.py.

Resides in /usr/bin
Probably the same thing on Mac.
You're using a Windows tutorial.

It may also tell you

python manage.py runserver

and that is actually

python ./manage.py runserver

这篇关于找不到命令:django-admin.py的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆