Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d7ee51a33b
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (19 sloc) 0.69 kb
from django.conf.urls.defaults import patterns
from django.http import HttpResponse
from django_wsgi import wsgi_application, django_view
def test_app(request):
return HttpResponse("Hello World!")
def test_app2(request, name):
return HttpResponse("Hello %s!" % name)
def test_app3(request):
return HttpResponse("wowa, meta")
def test_app4(environ, start_response):
start_response("200 OK", [("Content-type", "text/html")])
yield "i suck"
urls = patterns("",
(r"^$", test_app),
(r"^meta/$", django_view(wsgi_application(test_app3))),
(r"^test4/$", django_view(test_app4)),
(r"^(?P<name>.*?)/$", test_app2),
)
application = wsgi_application(urls)
Jump to Line
Something went wrong with that request. Please try again.