Django create page using Ajax

0

I want to upload without refreshing paging using ajax

I have a table where it shows 5 items per page the goal is to change the page do not refresh the page to change to the next

In views:

Inthepaginationnavtemplate

    
asked by anonymous 09.02.2018 / 16:45

1 answer

0

Django template language works by making new server-side requests, to load only the result via ajax you will need to create the call by javascript and an api that will return the table items in json format. I suggest using some framework (vue, angular etc) and create a paging component.

    
26.02.2018 / 21:03