#12839: csrf_exempt decorator ---------------------------+------------------------------------------------ Reporter: rubic | Owner: nobody Status: new | Milestone: Component: Documentation | Version: 1.1 Keywords: csrf | Stage: Unreviewed Has_patch: 0 | ---------------------------+------------------------------------------------ Documentation states:
'''New in Django 1.1''' ''To manually exclude a view function from being handled by either of the two CSRF middleware, you can use the csrf_exempt decorator ...'' {{{ from django.views.decorators.csrf import csrf_exempt }}} But attempting to import the decorator: {{{ >>> import django >>> django.get_version() '1.1.1' >>> from django.views.decorators.csrf import csrf_exempt ImportError: No module named csrf }}} -- Ticket URL: <http://code.djangoproject.com/ticket/12839> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.