Re render template when submit a form

Posted by Agusti-N on Stack Overflow See other posts from Stack Overflow or by Agusti-N
Published on 2011-03-03T15:21:56Z Indexed on 2011/03/03 15:25 UTC
Read the original article Hit count: 221

Filed under:
|
|
|

Hi, i've this problem:

I've a view that render a template and then retrive to the user the rendered template. Yesterday i want to add a form. The problem is when i submit this form to the same url that the view render the template, i have to re render the template with previusly data and then show the errors (if they are) in the form with the new renderd data, so i have to re render all the time the previusly information.

I've view a lot of examples, but ALL examples have the form in an externar html(separated)

How can avoid this ?

© Stack Overflow or respective owner

Related posts about django

Related posts about templates