Thanks! That's what I needed!
Kind regards,
Frederik
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from thi
Might be of help:
http://www.djangoproject.com/documentation/request_response/#httprequest-objects
if request.method == 'GET':
do_something()
elif request.method == 'POST':
do_something_else()
Chris
--~--~-~--~~~---~--~~
You received this message becaus
Hi,
I'm trying to detect if a request is a POST or a GET. This is what I'm
doing:
if request.POST:
# do stuff
However, this only works if there are some variables in the POST. The
request I'm doing is empty (it's an ajax "delete" request). Is there a
way to check if the request was a POST,
3 matches
Mail list logo