RedirectNonAjaxRequestMixin

50 views
Skip to first unread message

Stefano Munarini

unread,
Jun 19, 2016, 5:58:38 PM6/19/16
to Django developers (Contributions to Django itself)
Hello everyone.

I've been using a simple Mixin class that redirects requests if not ajax. I thought it would have been useful for someone, so was wondering if it would sound good for you?
It has been originally developed to avoid to create a template for a class that doesn't need one (but Django Update and Create views need one, so if someone navigates to the url for that view, it will raise TemplateNotFoundException).

Stefano
Reply all
Reply to author
Forward
0 new messages