An open API service indexing awesome lists of open source software.

https://github.com/studygyaan/how-to-integrate-ajax-with-django-applications

How to Integrate Ajax with Django applications
https://github.com/studygyaan/how-to-integrate-ajax-with-django-applications

django django-ajax django-framework python

Last synced: about 2 months ago
JSON representation

How to Integrate Ajax with Django applications

Awesome Lists containing this project

README

        

# How to Integrate Ajax with Django applications

## Tutorial Link - http://studygyaan.com/django/how-to-integrate-ajax-with-django-applications

In this tutorial, we are going to learn how to use AJAX with Django to make web applications more fast and dynamic. We will send AJAX request and using Django AJAX Response we will update the web page. For this tutorial, I am using JQuery. You can also handle AJAX with Django libraries like django-dajax or Javascript. But the concept of working with AJAX request with Django will be the same.

### Setup
1. Create a folder and put all the files inside it.
2. Create a virtual environtment - `virtualenv env`
3. Activate VirtualENV - `. env/bin/activate`
4. Run Requirements.txt - `pip3 install -r requirements.txt`
5. Run the Application - `python3 manage.py runserver`
6. Go to - http://localhost:8000/simpleajax/

We already have data in database SQLite. If you put `huzaif` in username field it will give message 'User name Already Exists'