{% load staticfiles %} Hello, world!

Django Ajax CRUD

CRUD operations form basics for database operations at the backend. Conventional Django apps result in a page reload after HTTP methods such as 'POST' and 'GET'.


To overcome this and to implementing more immersive User experience we can use Ajax along with JQuery for posting data to the server.

{% if books %} {% for book in books %} {% endfor %} {% else %} {% endif %}
# Title Publisher Author Number of pages Price Edit Delete
{{ book.id }} {{ book.title }} {{ book.publisher }} {{ book.author }} {{ book.pages }} {{ book.price }}