mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Fixed #5888 -- Added methods to the test client to support HEAD, PUT, DELETE
and OPTIONS support. Thanks Scott Barr and Leah Culver. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9186 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -43,3 +43,7 @@ def set_session_view(request):
|
||||
def check_session_view(request):
|
||||
"A view that reads a session variable"
|
||||
return HttpResponse(request.session.get('session_var', 'NO'))
|
||||
|
||||
def request_methods_view(request):
|
||||
"A view that responds with the request method"
|
||||
return HttpResponse('request method: %s' % request.method)
|
||||
Reference in New Issue
Block a user