Django provides JSON, YAML and XML serializers to assist with buidling AJAX services. Here are some other resources to make it easier.
Libraries
- Django REST Framework: https://www.django-rest-framework.org/ (features)
- django-nap: https://django-nap.readthedocs.io/en/latest/
- Tastypie: https://django-tastypie.readthedocs.io/en/latest/
- Fast and easy to use AJAX libraries for Django projects: http://yceruto.github.io/django-ajax
- A simple framework for creating AJAX endpoints in Django: https://github.com/joestump/django-ajax
- Django Packages API Creation grid: https://djangopackages.org/grids/g/api/
Other relevant tools
- JSONResponse: https://docs.djangoproject.com/en/stable/ref/request-response/#jsonresponse-objects
- PrototypeJS: http://www.kelvinism.com/2007/06/simple-ajax-with-django_1754.html
Tutorials and other resources
- Another similar link (but more indepth) is http://www.willarson.com/blog/?p=36 (up to Django 1.2 or so , Generic views used in the tutorial has been depreciated in the current version 1.6 , also the CSRF in not handled in this tutorial )
- 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
- Django and jQuery Ajax Patterns: http://www.infiniterecursion.ca/blog/django/2011/1/30/django-and-jquery-ajax-patterns/
Last modified
6 years ago
Last modified on Feb 16, 2019, 9:09:31 PM
Note:
See TracWiki
for help on using the wiki.