CARVIEW |
Select Language
HTTP/2 200
server: nginx
content-type: text/html;charset=utf-8
cache-control: must-revalidate
expires: Fri, 01 Jan 1999 00:00:00 GMT
set-cookie: trac_form_token=4f301cbb63ed8dccc80b9e10; HttpOnly; Path=/; Secure
set-cookie: trac_session=658f454c8ba67985fa3b9621; expires=Tue, 21 Oct 2025 08:41:47 GMT; HttpOnly; Path=/; Secure
strict-transport-security: max-age=31536000; includeSubDomains; preload
permissions-policy: interest-cohort=()
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
accept-ranges: bytes
via: 1.1 varnish, 1.1 varnish
date: Wed, 23 Jul 2025 08:41:47 GMT
x-served-by: cache-fra-eddf8230024-FRA, cache-bom-vanm7210034-BOM
x-cache: MISS, MISS
x-cache-hits: 0, 0
x-timer: S1753260107.407397,VS0,VE323
vary: Accept-Encoding
AJAX – Django
Back to Top
Django
The web framework for perfectionists with deadlines.
Issues
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: https://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: https://www.kelvinism.com/2007/06/simple-ajax-with-django_1754.html
Tutorials and other resources
- Another similar link (but more indepth) is https://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: https://toys.jacobian.org/presentations/2007/oscon/tutorial/#s67
- Doing server-side form validation with Dojo: (old-school style): AJAX/Dojo/RefactoredFormSubmit
- Quick learn: https://lethain.com/entry/2007/dec/11/two-faced-django-part-5-jquery-ajax/
- StackOverflow question on this topic: https://stackoverflow.com/questions/511843/what-is-the-best-ajax-library-for-django
- Django and AJAX: Dajaxice (2012): https://www.pythondiary.com/tutorials/django-and-ajax-dajaxice.html
- Django and AJAX: jQuery (2012): https://www.pythondiary.com/tutorials/django-and-ajax-jquery.html
- Django and AJAX: Dajax (2012): https://www.pythondiary.com/tutorials/django-and-ajax-dajax.html
- Django and jQuery Ajax Patterns: https://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.
Download in other formats:
Django Links
Learn More
Get Involved
Follow Us
- Hosting by In-kind donors
- Design by Threespot &
© 2005-2025 Django SoftwareFoundation unless otherwise noted. Django is a registered trademark of the Django Software Foundation.