Version 39 (modified by 12 years ago) ( diff ) | ,
---|
Django doesn't natively provide AJAX support other than serializers to JSON and XML. Here are some resources to make it easier.
Libraries
- Easy to use AJAX libraries for Django: http://www.dajaxproject.com
- A simple framework for creating AJAX endpoints in Django: https://github.com/joestump/django-ajax
Other relevant tools
- JSONResponse like HttpResponse in views: http://chronosbox.org/blog/jsonresponse-in-django/
- PrototypeJS: http://www.kelvinism.com/tech-blog/simple-ajax-django/
Tutorials and other resources
- Another similar link (but more indepth) is http://www.willarson.com/blog/?p=36
- Reusing forms to do AJAX validation: http://toys.jacobian.org/presentations/2007/oscon/tutorial/#s67
- Doing server-side form validation with Dojo: (old-school style): AJAX/Dojo/RefactoredFormSubmit
- Quick learn: http://lethain.com/entry/2007/dec/11/two-faced-django-part-5-jquery-ajax/
- StackOverflow question on this topic: http://stackoverflow.com/questions/511843/what-is-the-best-ajax-library-for-django
- Django and AJAX: Dajaxice (2012): http://www.pythondiary.com/tutorials/django-and-ajax-dajaxice.html
- Django and AJAX: jQuery (2012): http://www.pythondiary.com/tutorials/django-and-ajax-jquery.html
- Django and AJAX: Dajax (2012): http://www.pythondiary.com/tutorials/django-and-ajax-dajax.html
Note:
See TracWiki
for help on using the wiki.