python - Putting something on your system path -
i trying python, django tutorial. says type django-admin.py 'command not found' this.
someone told me problem django not in system path, mean?
i using ubuntu.
system path system environment variable contains path folders os search applications, scripts, etc.
in windows django-admin.py in c:\python\scripts, if have set pythonpath environment variable , added required python folder in variable c:\python;c:\python\lib;c:\python\scripts;c:\python\lib\site-packages, os automatically find django-admin.py when type command django-admin.py startproject myproj on commandline.
same linux, django-admin.py in /usr/bin/django-admin.py if install django default python installation. so, 1 way if create alias script can run ever want.
i using centos , did edited /etc/bashrc , added alias djangoadmin='/usr/bin/django-admin.py' , works me well.
Comments
Post a Comment