“Best” way to integrate Django with an Ajax library

前端 未结 5 2006
后悔当初
后悔当初 2021-02-03 13:25

Obviously, horses for courses, but what are some good ways to integrate javascript libraries with one\'s Django application?

I\'m planning on using jQuery, mostly becaus

5条回答
  •  执笔经年
    2021-02-03 14:06

    I would suggest that you simply create your own javascript and AJAX views. Ruby on Rails long had the opposite problem: forcing people to do AJAX in a certain way, and it was always a point of conflict for people. Recently, they finally realized their folly and decoupled AJAX from the framework so you can easily use whatever library you like.

    This is a feature of Django. It may seem more difficult, but trust me, it ends up being infinitely better having control end-to-end.

提交回复
热议问题