Hello Cody,
I would like to help.
1 ) could you please check if POST is going from your browser to django
(I hope yes)
2) First candidate for investigation is function post in
class PollFormMixin
I 'm proposing verify this by adding
print "form status", form.is_valid()
after string for
The code works, I can submit the form and go back to the page I came from
with the HTTP_REFERER , what I need help is getting the form to change, to
be the results.
For the syntax highlighting I submit my code to bpaste and then copy into
the message here.
On Fri, Jul 12, 2013 at 10:43 AM, Sergi
dows Phone
--
From: Cody Scott
Sent: 7/12/2013 11:51 PM
To: django-users@googlegroups.com
Subject: Re: Submit a form but stay on the page and the form changes
The code works, I can submit the form and go back to the page I came from
with the HTTP_REFERER , what I ne
you are submitting your POST to return the data you need in JSON and use
> jQuery to remove the form and add the results or url
>
> Sent from my Windows Phone
> --
> From: Cody Scott
> Sent: 7/12/2013 11:51 PM
> To: django-users@googlegroups.com
>
rm and add the results or url
>>
>> Sent from my Windows Phone
>> --
>> From: Cody Scott
>> Sent: 7/12/2013 11:51 PM
>> To: django-users@googlegroups.com
>> Subject: Re: Submit a form but stay on the page and the form changes
>>
>> The
5 matches
Mail list logo