如何编写批处理文件以自动执行django Web服务器启动 [英] how to code a batch file to automate django web server start
本文介绍了如何编写批处理文件以自动执行django Web服务器启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
谢谢
我的意思是自动化是点击。蝙蝠文件和Django开发webserver启动
,我没有批处理文件脚本知识将喜欢获取代码示例
解决方案
您可以写一个 .bat
文件,其中包含:
cd <您的django项目的位置>
< python.exe的位置> manage.py runserver
我相信应该够了。
i really need a code sample to automate starting Django development webserver "python manage.py runserver" in a .bat file in windows . I have python26 and django 1.1.1 in installed
Thanks
i meant by automate is clicking on the .bat file and the Django development webserver start up and i have no batch file scripting knowledge will love to get a code sample
解决方案
You can write a .bat
file containing:
cd <location of your django project>
<location of python.exe> manage.py runserver
I believe that should suffice.
这篇关于如何编写批处理文件以自动执行django Web服务器启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文