Answer the question
In order to leave comments, you need to log in
AJAX guide for Django 3 (maybe Django 2 too)?
Can you recommend a good guide or course on AJAX that will explain the specifics of AJAX robots with Django 3( or 2 ). Course / guide in English is allowed, but better in Russian. Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Yes, what are the features here, everything is simple:
1. in the view, return something else to the ajax request (if required) https://docs.djangoproject.com/en/3.0/topics/class... and https:// docs.djangoproject.com/en/3.0/ref/request-...
2. understand how to get a CSRF token via Js if you need to send a POST request https://docs.djangoproject.com/en/3.0/ref/csrf/ #ajax
Well, or if you fully implement the REST API, then here is DRF
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question