Still curious about the answer, but I've realized I can accomplish
what I want by using a URL pattern
to pass the data from the URL into the view that way.
On Jan 30, 4:15 pm, adrian wrote:
> My question is about how to read form items from the POST request
> before the form is validated.
> I tr
Clues: the POST querydict is empty, so is GET
and the HTTP_X_REQUESTED_WITH header is 'XMLHttpRequest' even though
I submitted the form with
form.submit() in javascript, which should generate an ordinary http
request. I don't know if the presence of
this header is affecting how django handles
My question is about how to read form items from the POST request
before the form is validated.
I try to read request.POST['myKey'] and Python says
MultiValueDictKeyError: "Key 'myKey' not found in even
though Firebug shows the POST request does contain that key.
Here's why I want to do this.
3 matches
Mail list logo