Skip to content

studygyaan/how-to-integrate-ajax-with-django-applications

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

Releases

No releases published

Packages

No packages published