[Answer]-Django template add old form data

1👍

If the basic form layouts like {{ form }} or {{ form.as_ul }} do not render the way you want, then have a good read of the docs on customizing the form template. Using that, you should be able to render the form the way you want using CSS. You could specify the widget in your form fields to set any attributes required.

Try to avoid rendering form inputs by hand in your templates. It is repetitive, and increases the chances of making mistakes.

Leave a comment