mirror of
https://github.com/django/django.git
synced 2024-11-19 07:54:07 +00:00
52e0bcbc62
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14398 bcc190cf-cafb-0310-a4f2-bffc1f526a37
18 lines
356 B
Python
18 lines
356 B
Python
from django import http
|
|
from django.core.exceptions import PermissionDenied
|
|
|
|
def normal_view(request):
|
|
return http.HttpResponse('OK')
|
|
|
|
def not_found(request):
|
|
raise http.Http404()
|
|
|
|
def server_error(request):
|
|
raise Exception('Error in view')
|
|
|
|
def null_view(request):
|
|
return None
|
|
|
|
def permission_denied(request):
|
|
raise PermissionDenied()
|