runcommands:从视图执行系统命令
django-runcommands的Python项目详细描述
runcommands:从url执行系统命令。
- 作者:mathieu agopian和contributors
- 许可证:BSD
- 兼容性:django 1.4+、python2.7和python3.3
- 项目URL:https://github.com/magopian/django-runcommands
- 文档:http://django-runcommands.rtfd.org/
快速启动
安装应用程序:
pip install django-runcommands
然后在urlconf中为runcommand视图添加一个条目 要访问的命令:
# urls.pyfromruncommands.viewsimportRunCommandViewurlpatterns=patterns('',url(r'^hello-world/$',RunCommandView.as_view(command='echo Hello World')),)
您的命令输出现在可以在url/hello-world/中使用。
黑客攻击
设置您的环境:
git clone https://github.com/magopian/django-runcommands.git cd django-runcommands
使用Tox进行破解并运行测试 在所有受支持的python和django版本上:
make test
更改日志
0.1(2013-06-18)
- first version