我一直在尝试将 django-admin.py
路径添加到 Windows 7 上的命令行.
I've been trying to add the django-admin.py
path to command line on Windows 7.
我尝试过这样做:
C:>set django-admin.py = C:Python27Scriptsdjango-admin.py
但是 cmd
告诉我:
'django-admin.py' is not recognized as an internal or external command.
那么如何在 Windows 7 上将 django-admin.py
路径添加到命令行?
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:UsersMichaelDesktopmysite>django-admin.py startproject mysite
谢谢.
试试下面的命令.
set path=%path%;c:python27scripts
PATH
仅为运行上述命令的 cmd.exe 设置.
PATH
is set only for the cmd.exe in which you run the above command.
更新
永久设置路径:
PATH
变量:C:python27scripts
;C:Python27scripts
附加到现有值.PATH
variable:
C:python27scripts
;C:Python27scripts
to existing value.这篇关于添加“django-admin.py"Windows 7 上的命令行路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!