As the title says: I need to render a template after submitting a form, this form is handled with FormView
with the method form_valid
. With the method post
, I can render a template after submitting it but maybe with form_valid
, I can do it in the cleanest way.
How can I do it?
The default implementation of
form_valid
is to redirect tosuccess_url
, you only need to override it to render some page. Here is the example.