OS - Linux Debian. I started reading a book on Django, and there it is necessary to register django-admin.py startproject mysite
in the console. I prescribe, deduces that django-admin.py
not found. Apparently, you must specify the full path to this file, or you must prescribe the path to the PATH environment variable. But I can’t do either one or the other, because I don’t know the full path to this file, but I don’t know how to add an environment variable. Tell me what to do to make it work?
- Probably worth the ancient jung - how much I work, and the path to django-admin.py never prescribed ... - metazet
|
4 answers
Ubuntu server 11.10, Python 2.7.2 with correct documented package installation
$python setup.py install
Installed in /usr/local/lib/python2.7/dist-packages/
But with the correct installation of Django as a normal package, all system paths are written automatically.
|
deployed a test Django project on Debian for this article with some of its modifications. there and the answer to your question
|
locate django-admin.py
|
Here is an example path under Windows:
C:\Python27\Scripts
Right-click on My Computer, there are Properties, the Advanced tab, the Environment Variables button. In the window in the System Variables area, select the Path
and click Modify, put it at the end of the list ;
and append the above path
|