How do I integrate Ajax with Django applications?

前端 未结 8 630
忘了有多久
忘了有多久 2020-11-22 06:16

I am new to Django and pretty new to Ajax. I am working on a project where I need to integrate the two. I believe that I understand the principles behind them both, but have

8条回答
  •  梦谈多话
    2020-11-22 06:45

    Simple and Nice. You don't have to change your views. Bjax handles all your links. Check this out: Bjax

    Usage:

    
    
    

    Finally, include this in the HEAD of your html:

    $('a').bjax();
    

    For more settings, checkout demo here: Bjax Demo

提交回复
热议问题