What is the best AJAX library for Django? [closed] What is the best AJAX library for Django? [closed] ajax ajax

What is the best AJAX library for Django? [closed]


I highly recommend jQuery. There are several tutorials on how to implement it.

http://lethain.com/entry/2007/dec/11/two-faced-django-part-5-jquery-ajax/

http://lethain.com/entry/2007/dec/01/using-jquery-django-autocomplete-fields/

http://vincentxu.net/minimal-ajax-in-django-with-jquery-post

NOTE: Microsoft also announced a while ago that jQuery would be the official client-side framework for ASP.NET MVC, so its good to know regardless of what server side framework you're using.


I think this may be what you're looking for: django-dajax

Pretty well documented. Simple api. Very clean and nice. I plan on using it more in some of my projects. It's JS library agnostic, and works well with jQuery if that's your thing.

UPDATE:

Other solutions similar to dajaxice, but not standard dajax.

In the end they mostly work the same.

  • Define/include some predefined URL routes.
  • Register models/views/functions that will be used as data sources.
  • Enjoy.

UDATE2:

This advice is super old. Should probably research other solutions.


There's nothing about Django that makes any of the libraries easier or work better with the framework. Just use the one that fits your brain the best.

Having said that, my sense is that jQuery is more popular in the Django world and is what I personally use. Most notably, many of the apps in Pinax require jQuery. Some other shared apps and code snippets for Django:

http://www.djangosnippets.org/tags/jquery/
http://code.google.com/p/django-ajax-validation/
http://code.google.com/p/django-todo/
http://code.google.com/p/donita/