Django inserting data using jQuery Ajax

preview_player
Показать описание
This video teaches you how to insert data using jQuery AJAX in Django

To save data with AJAX in Django you will have to:
1. Create the HTML of the form with csrf_token
4. Add the required JavaScript code for AJAX

Рекомендации по теме
Комментарии
Автор

it doen't worked for me till I add this in the view function
form.instance.author = request.user

wiki-infodevelopment