url('^snippets/$', csrf_exempt(snippet_list), name='snippet-list'),
url('^snippets/(?P<pk>[0-9]+)/$', csrf_exempt(snippet_detail), name=
    'snippet-detail'),
How to unset csrf in modelviewset of django-rest-framework?