Re: Submit a form but stay on the page and the form changes

2013-07-12 Thread Sergiy Khohlov
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

Re: Submit a form but stay on the page and the form changes

2013-07-12 Thread Cody Scott
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

RE: Submit a form but stay on the page and the form changes

2013-07-12 Thread Babatunde Akinyanmi
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

Re: Submit a form but stay on the page and the form changes

2013-07-15 Thread Cody Scott
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 >

Re: Submit a form but stay on the page and the form changes

2013-07-15 Thread Bill Freeman
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