PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/regressiontests/urlpatterns_reverse/views.py

https://code.google.com/p/mango-py/
Python | 19 lines | 18 code | 1 blank | 0 comment | 0 complexity | 6b706b239f14e1c59669ecd3ca157b06 MD5 | raw file
 1from django.http import HttpResponse
 2
 3def empty_view(request, *args, **kwargs):
 4    return HttpResponse('')
 5
 6def kwargs_view(request, arg1=1, arg2=2):
 7    return HttpResponse('')
 8
 9def absolute_kwargs_view(request, arg1=1, arg2=2):
10    return HttpResponse('')
11
12class ViewClass(object):
13    def __call__(self, request, *args, **kwargs):
14        return HttpResponse('')
15
16view_class_instance = ViewClass()
17
18def bad_view(request, *args, **kwargs):
19    raise ValueError("I don't think I'm getting good value for this view")