About Django and DataTables AJAX load()
About Django and DataTables AJAX load()

Hi everyone,
I'm using Django v.1.11 and DataTables v1.10.
I’d like to implement a Django project. This is the process, when clients choose a date on the UI, this will trigger Datatable’s Ajax function which connects to a custom url to get json data and to upgrade the tables’ data automatically on UI.
On the other hand, I wanna use a custom HTTP GET method that implements Django to response Ajax data via jsonresponse.
This is my sample code of the Ajax GET method:
Its used to update data by date that clients choose.
This is the errors what I got when I was testing.
The value "?_=1553449196872" is a wrong or a unexpected value.
Here is my questions,
1. how can I hide or avoid to get "?_=1553449196872" this value?
2. what kind of documents can I refer for this.
Thank for your assistances in advance.
Answers
This is a jQuery Ajax option to disable the browser's cache.
You can change the ajax type to POST. Or if you want to use GET then add
**kwargs
to your Django function to accept the?_=1553449196872
parameter.Kevin