Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3859bafd07
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (8 sloc) 0.256 kb
from django import http
def require_post(f):
def wrapper(request, *args, **kw):
if request.method == 'POST':
return f(request, *args, **kw)
else:
return http.HttpResponseNotAllowed(['POST'])
return wrapper
Jump to Line
Something went wrong with that request. Please try again.