Re: Django 1.4 - how to display a success message on form save
you may use HttpResponseRedirect to redirect to another page to display the successful message
On 26 June 2012 17:48, Sithembewena Lloyd Dube <zebra05@gmail.com> wrote:
Hi everyone,I have a form on which I'm calling save() and if it is successful I would like to display 'your post has been saved' or similar in the template. How would one go about that in Django 1.4?I am sifting through the docs and cannot seem to find a definitive answer.Thanks in advance.----
Regards,
Sithembewena Lloyd Dube
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 this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
--
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 this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home