morlandi / django-ajax-datatable

A Django app which provides the integration of a Django project with the jQuery Javascript library DataTables.net
MIT License
204 stars 64 forks source link

request.is_ajax() is returning false #48

Closed Shavinder closed 2 years ago

Shavinder commented 2 years ago

I have followed the steps and trying to use the plugin in a simple way, but I am getting an assertion error. I have looked views.py line number 381, request.is_ajax()

Shavinder commented 2 years ago

Ah, I just came across the previous issue with the same error and found out my mistake. The ajax view is not to be called directly. View number one generates the HTML page which contains a table markup as well as the script which calls the ajax view. Its working now. Thanks, Morlandi!

morlandi commented 2 years ago

ok, grad problem in over ;)