I have a form that clearly form level errors (not field level) I can
print those error messages in my form_invalid method.

But they are not showing up when using crispy form.

I have set following options

        self.helper.form_error_title = "Form Errors"
        self.helper.form_show_errors = True


( 
http://django-crispy-forms.readthedocs.org/en/latest/form_helper.html#bootstrap-helper-attributes
)

I can display them by passing form_errors in context as:

context['form_errors'] = form.errors

And show them in my template using

                    <div id='form-errors'>{{ form_errors }}</div>

But I can't get crispy form to natively show form level errors. What
options do I have to set so crispy form will display form level errors
correctly?

-Subodh

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALr9Q3YvXaKZfxVr8CnySbkG3yFxd4n99Zc6YSJS3pukcPoSDg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to