PageRenderTime 44ms CodeModel.GetById 41ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/regressiontests/templates/views.py

https://code.google.com/p/mango-py/
Python | 22 lines | 14 code | 7 blank | 1 comment | 0 complexity | ed10097a537aa51fd0a7220d7b63c000 MD5 | raw file
 1# Fake views for testing url reverse lookup
 2from django.http import HttpResponse
 3from django.template.response import TemplateResponse
 4
 5
 6def index(request):
 7    pass
 8
 9def client(request, id):
10    pass
11
12def client_action(request, id, action):
13    pass
14
15def client2(request, tag):
16    pass
17
18def template_response_view(request):
19    return TemplateResponse(request, 'response.html', {})
20
21def snark(request):
22    return HttpResponse('Found him!')