mirror of
https://github.com/django/django.git
synced 2024-12-27 03:25:58 +00:00
859fc020a7
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13590 bcc190cf-cafb-0310-a4f2-bffc1f526a37
20 lines
518 B
Python
20 lines
518 B
Python
from django.http import HttpResponse
|
|
|
|
def empty_view(request, *args, **kwargs):
|
|
return HttpResponse('')
|
|
|
|
def kwargs_view(request, arg1=1, arg2=2):
|
|
return HttpResponse('')
|
|
|
|
def absolute_kwargs_view(request, arg1=1, arg2=2):
|
|
return HttpResponse('')
|
|
|
|
class ViewClass(object):
|
|
def __call__(self, request, *args, **kwargs):
|
|
return HttpResponse('')
|
|
|
|
view_class_instance = ViewClass()
|
|
|
|
def bad_view(request, *args, **kwargs):
|
|
raise ValueError("I don't think I'm getting good value for this view")
|