-
Notifications
You must be signed in to change notification settings - Fork 4
/
test.py
28 lines (19 loc) · 690 Bytes
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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))),