I like the convenient output form method {{ form.as_ul }} but is there a way I can still continue to use it but capture all the errors upfront instead of displaying the error just above each field.
I understand that there are ways to loop through each form element and so on as mentioned in django docs but I want to continue to utilize the capability of form.as_ul() except get control over error display.
Solved this problem by using Reusable Form Templates.
Its simple…
Create a reusable template with the following code snippets based on your need.
If you want to display all errors right at the top of the form…
If you want to display all errors right after each form field without the default html elements around error use…
Used the second template and created a Inclusion Tag