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

Shoaib QasimShoaib Qasim Posts: 2Questions: 1Answers: 0

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

  • kthorngrenkthorngren Posts: 18,571Questions: 26Answers: 4,406

    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

  • Shoaib QasimShoaib Qasim Posts: 2Questions: 1Answers: 0

    Thanks @kthorngren I will try this

Sign In or Register to comment.