G
G
GetB2014-08-13 00:46:11
JavaScript
GetB, 2014-08-13 00:46:11

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

2 answer(s)
S
sim3x, 2014-08-13
@GetB

Ideal:
restframework + angular
In reality:
sausage from statics, jQ and custom json response

D
Dmitry Filatov, 2014-08-13
@i_dozi

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 question

Ask a Question

731 491 924 answers to any question