2010-08-14 14:27:35 +00:00
|
|
|
from django.http import HttpResponse
|
|
|
|
|
2008-08-31 11:11:20 +00:00
|
|
|
def empty_view(request, *args, **kwargs):
|
2010-08-14 14:27:35 +00:00
|
|
|
return HttpResponse('')
|
2008-09-27 06:14:11 +00:00
|
|
|
|
|
|
|
def kwargs_view(request, arg1=1, arg2=2):
|
2010-08-14 14:27:35 +00:00
|
|
|
return HttpResponse('')
|
2008-09-27 06:14:11 +00:00
|
|
|
|
|
|
|
def absolute_kwargs_view(request, arg1=1, arg2=2):
|
2010-08-14 14:27:35 +00:00
|
|
|
return HttpResponse('')
|
2010-08-06 13:47:56 +00:00
|
|
|
|
|
|
|
class ViewClass(object):
|
|
|
|
def __call__(self, request, *args, **kwargs):
|
2010-08-14 14:27:35 +00:00
|
|
|
return HttpResponse('')
|
2010-08-06 13:47:56 +00:00
|
|
|
|
|
|
|
view_class_instance = ViewClass()
|
2010-08-14 14:27:35 +00:00
|
|
|
|
|
|
|
def bad_view(request, *args, **kwargs):
|
|
|
|
raise ValueError("I don't think I'm getting good value for this view")
|