My django api end point of type GET is not working with data tables
My django api end point of type GET is not working with data tables
Hi,
I am trying to implement the django api end point with jquery datatables of type GET method .
the coming data is not displaying in the tables and whenever i see in network tab api Url becomes very odd e.g
http://3.133.143.127/api/brand/?
draw=1&columns%5B0%5D%5Bdata%5D=id&columns%5B0%5D%5Bname%5D=&columns%5B0%5D%5Bsearchable%5D=true&columns%5B0%5D%5Borderable%5D=false&columns%5B0%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B0%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B1%5D%5Bdata%5D=name&columns%5B1%5D%5Bname%5D=&columns%5B1%5D%5Bsearchable%5D=true&columns%5B1%5D%5Borderable%5D=false&columns%5B1%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B1%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B2%5D%5Bdata%5D=is_active&columns%5B2%5D%5Bname%5D=&columns%5B2%5D%5Bsearchable%5D=true&columns%5B2%5D%5Borderable%5D=false&columns%5B2%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B2%5D%5Bsearch%5D%5Bregex%5D=false&start=0&length=10&search%5Bvalue%5D=&search%5Bregex%5D=false&_=1678019285946
abov is the api that is becoming in datatables
any one can help me
Thanks
Answers
You have server side side processing (serverSide: true) enabled. These are the server side parameters sent to the server for processing. See the Server Side Processing protocol docs for details. Your Django script is expected to handle these parameters to fetch the proper page and sort and search the table.
Do you need server side processing? See the Processing modes doc.
Kevin
Thanks @kthorngren I will try this