Seems that your shell doesn't know where django-admin.py is. In what
directory you have installed django?
You can solve this problem by making a symbolic link like this:
ln -s "$DJANGO-INSTALLED-PATH"/django/bin/django-admin.py /usr/bin/
--
Marc
If a program is on your PATH, such as the 'ls' command, you can just
type 'ls' and it will run. If you type 'which ls' you will see where
the program lives. You can also run it with the full path, for example
"/bin/ls."
Since your django-admin.py isn't on your PATH, you will either have to
add it or run it by passing the full path.
Example:
If django-admin.py lives here: /usr/local/bin/django-admin.py
You can either:
export PATH=$PATH:/usr/local/bin
or:
python /usr/local/bin/django-admin.py
Shawn
You should never do that. Either install it globally, so that it is
installed like that anyway, or install per user, and configure your
shell correctly so that it can find the appropriate apps.
Doing half of each is a maintenance disaster.
One can even use virtualenv to make this process easier.
apt-get/yum/portinstall/emerge virtualenv, and then simply:
mkdir project; cd project ; virtualenv env ; source env/bin/activate ;
pip install django
Cheers
Tom
This has nothing to do with python 2.7
The prefix where you installed django is not in your $PATH environment
variable. Either you installed it globally in the wrong place, or you
installed it locally for your user, and need to add that prefix to
your path - similar to the changes you would have had to make to get
python to find django as well.
Eg if you installed in ~/my-python-packages, then django-admin.py is
in ~/my-python-packages/bin/ , and that location must be added to your
PATH.
Cheers
Tom