Command not found: django-admin.py


Question

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.

1
23
11/23/2011 10:42:04 PM

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
25
12/10/2013 7:09:08 AM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon