この間作成したdcontainer.winexec部分についてデモを作ってみた。
demo/api/views.py
from dcontainer import * from django.http import HttpResponseRedirect def notepad(request): winexec('notepad', 5) return HttpResponseRedirect('wsgi:///wsgicontainer/hello/')
demo/api/urls.py
from django.conf.urls.defaults import * urlpatterns = patterns('', (r'^notepad/', 'demo.api.views.notepad'), )
リンク部分は単純。
<a href="/api/notepad/">open notepad</a>