One good way is to just use AJAX: If it's a 'get' request, return your
rendered template as normal. If it's a 'post' request, return a JSON
response that has a success/failure status and confirmation/error
messages (form.errors.as_text()).
I'm doing this using jquery-notify to tell the user that it went great
or what the problem was:
http://www.erichynds.com/examples/jquery-notify/
If you need to redirect or refresh the page on success you can handle
that with JavaScript as well. In addition to being faster than a
full-page refresh this happens to solve your problem.
Shawn
--
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+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.