Answer the question
In order to leave comments, you need to log in
What is your preferred way to implement AJAX in Django applications?
1. The back-end is written without the use of third-party AJAX Django libraries, and on the client side, through jQuery, you implement asynchrony.
2. Implement all AJAX in the Back-end and use Django's AJAX libraries like Dajax etc.
What implementation method is good design practice?
Your opinion is interesting.
Thank you.
Answer the question
In order to leave comments, you need to log in
Ideal:
restframework + angular
In reality:
sausage from statics, jQ and custom json response
Two separate views, one of which fulfills ajax. In POST I pass all the information. crsf token I use the same.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question