execute system commands from urls
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
runcommands
.gitignore
.travis.yml
CHANGELOG
LICENSE
MANIFEST.in
Makefile
README.rst
VERSION
requirements-dev.txt
setup.cfg
setup.py
tox.ini

README.rst

django-runcommands

Build Status

runcommands: execute system commands from urls.

Quickstart

Install the application:

pip install django-runcommands

And then add an entry for the runcommand's view in your URLCONF, for each command you wish to make accessible:

# urls.py
from runcommands.views import RunCommandView


urlpatterns = patterns(
    '',
    url(r'^hello-world/$',
        RunCommandView.as_view(command='echo Hello World')),
)

Your command output is now available at the url /hello-world/.

Hacking

Setup your environment:

git clone https://github.com/magopian/django-runcommands.git
cd django-runcommands

Hack and run the tests using Tox to test on all the supported python and Django versions:

make test