runcommands:从视图执行系统命令
项目描述
runcommands:从urls执行系统命令。
作者:Mathieu Agopian和贡献者
许可:BSD
兼容性:Django 1.4+, python2.7和python3.3
快速入门
安装应用程序
pip install django-runcommands
然后,在您的URLCONF中为每个您希望使其可访问的命令添加runcommand的视图条目
# urls.py
from runcommands.views import RunCommandView
urlpatterns = 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)
第一个版本
项目详情
关闭
django-runcommands-0.1.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 8f943c568e6640d94014c98584c713058063f1a22b17f256898feea7d4f55b4e |
|
MD5 | 3ef0ef93ed1784ce47970aeaa260c13d |
|
BLAKE2b-256 | 54bf6df9ae2d544c03f1995835e8ca59c6bd706c73c92130186760a1b30585ae |
关闭
django_runcommands-0.1-py2.py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | c90eca1f59f8a047ff99398df35a885c01a6206bee7995474316788101f0c6b6 |
|
MD5 | 3c47e50af73ebd52f9e89a210baf1311 |
|
BLAKE2b-256 | 5bb5bff49ce0b526652e755c867bda7e5265fe70568843f9a1e0c64d4a9f8490 |