Django async update a single page template

后端 未结 2 834
死守一世寂寞
死守一世寂寞 2021-01-07 03:22

I have a django view with this function to get the data for a template:

def get_context_data(self, **kwargs):
  context = super(MyView, self).get_context_dat         


        
2条回答
  •  长情又很酷
    2021-01-07 03:41

    Anybody interested in asynchronous updating a template using AJAX can use django-async-include (GitHub repository).

    This project makes it easy changing an static block inclusion to a asynchronous one. That's perfect for inclusion of computational-heavy template block.

    Disclaimer: I'm the developer of this project.

提交回复
热议问题