Getting started is as simple as: ...
easy_install django-reroute, or
pip install django-reroute
;)
- Mark
On Fri, Dec 10, 2010 at 4:12 PM, Mark Sandstrom
wrote:
> Hello all,
>
> This is a pretty common pattern in django:
>
> def view(request):
> if
Hello all,
This is a pretty common pattern in django:
def view(request):
if request.method == 'GET':
# Do something
elif request.method == 'POST':
# Do something else
else:
return HttpResponse(status=405)
The setup for GET vs POST may be very different, and
2 matches
Mail list logo