To suppress csrf verification of class based view, @csrf_exempt decorator in veiws.py doesn’t work in Django 1.4 .

http://stackoverflow.com/questions/10252238/csrf-exempt-stopped-working-in-django-1-4#comment13230749_10252521

Instead, decorating the as_view function in urls.py works fine!