I am having trouble with the tutorial, I am stuck here django-admin.py startproject mysite
In the shell I get an error django-admin.py Command no found
I believe I have set the correct path variables? Here is what I have done in the shell:
First I typed in $ python
from there python booted up and I got the >>>
so I typed import django and then django.get_version() and everything works
and I see 1.4.2
Next I exited python and tried to set up the test site from the tutorial.
$ django-admin.py startproject mysite
I get the same error.
django-admin.py Command no found
Where am I going wrong? Do I need to set the path for django as well?
Thanks for your help I tried to be as descriptive as possible.
It sounds like you don’t have
django-admin.pyin your path.A guide to solving it is outlined on the Django installation pitfalls page:
Mind you, this may not be sufficient if
/usr/local/binisn’t in your path. You can check your path easily in your terminal:If
/usr/local/binisn’t in your path, you need to add that as well. See Add folder to PATH for an explanation of how to do that.