How-To-Execute-CRUD-Using-Django-Ajax-and-JSON icon indicating copy to clipboard operation
How-To-Execute-CRUD-Using-Django-Ajax-and-JSON copied to clipboard

How To Execute CRUD Using Django Ajax and JSON

How-To-Execute-CRUD-Using-Django-Ajax-and-JSON

Tutorial Link - http://studygyaan.com/django/how-to-execute-crud-using-django-ajax-and-json

In this tutorial, you’ll learn how to do CRUD operations using Django, Ajax Form Submission and JSON. We will be using the Class Based Views Functions. CRUD operation is the most basic operation that we perform on databases. CRUD stands for Create, Read, Update, Delete. We’ll take an example of a User Management System where we will add, update and delete users and its detail.

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/