I've been trying to add the django-admin.py
path to command line on Windows 7.
I have tried to do it this way:
C:\>set django-admin.py = C:\Python27\Scripts\django-admin.py
But cmd
told me that:
'django-admin.py' is not recognized as an internal or external command.
So how can I add django-admin.py
path to command line on Windows 7?
I need it because later I'm doing this:
C:\Users\Michael\Desktop\mysite>django-admin.py startproject mysite
Thanks.
Try following command.
set path=%path%;c:\python27\scripts
PATH
is set only for the cmd.exe in which you run the above command.
UPDATE
To permanently set PATH:
PATH
variable:
C:\python27\scripts
;C:\Python27\scripts
to existing value.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.