i working metronic datatables in have file ajax function works. problem when use type in ajax function "get" works in post not work , gives csrf token missing error in console, in case of not give error, using django framework site , ajax function :- "ajax": { // define ajax settings "url": document.url, // ajax url "type": "post", // request type "timeout": 20000, "data": function(data) { // add request parameters before submit $.each(ajaxparams, function(key, value) { data[key] = value; }); metronic.blockui({ message: tableoptions.loadingmessage, target: tablecontainer, overlaycolor: 'none', cenrery: true, boxed: true }); }, } urls.py file : from django.conf.urls import url . import views urlpatterns = [ url(r'^$', views.index, name='index'), url(r...