django.core.paginator Ajax pagination with jQuery

前端 未结 2 2023
北荒
北荒 2020-12-24 15:58

Problem

I need Ajax pagination using jQuery in a Django template.

Situation

I have the following code in my template:



        
2条回答
  •  离开以前
    2020-12-24 16:07

    I did not find the error, but I show you below how I solved this task. I think you can adapt it easily to your needs.

    The jquery ajax part:

    
    

    The template html part:

    
    
                
    {% table_header headers %} ....

    提交回复
    热议问题