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

Which AJAX library is the best for django and why?
Looking for one with a large database of tutorials, books and detailed documentation.
Which one is the easiest to work with? Which one is in early development but shows great promise for the future?

Regards,
chriss


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.

  • https://github.com/joestump/django-ajax - Joe Stump's solution that makes it dead simple to create restful endpoints from your models.
  • https://bitbucket.org/jespern/django-piston/wiki/Home - Similar idea, but a bit more robust. You can define the data format for your endpoints (xml vs json etc).
  • https://github.com/toastdriven/django-tastypie - Similar to piston, but I've had better luck with tastypie.

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/


Also keep in mind that the newest Django books (Python Web Development with Django, Learning Website Dev with Django) use jQuery in their tutorials.


Checkout Dajax:

Dajax Project

Easy to use AJAX libraries for Django

Fast, easy and lightweight libraries to implement AJAX inside your django projects. Ready to use in 5 minutes.

Dajax is a powerful tool to easily and super-fastly develop asynchronous presentation logic in web applications using python and almost no lines of JS source code.

It supports up to four of the most popular JS frameworks: Prototype, jQuery, Dojo and mootols.