you can make for example a custom template that you call inside the except.
Le lundi 3 novembre 2014 19:59:33 UTC+1, Daniel Grace a écrit :
-- Le lundi 3 novembre 2014 19:59:33 UTC+1, Daniel Grace a écrit :
Thanks for the information Aliane and Steven, although I still don't know what to do when handling exceptions in say form_valid of a CBV. How to render the error in this case?
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+unsubscribe@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/dcfee188-8293-4bae-bdc5-4dc7cd7f0a1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment