Answer the question
In order to leave comments, you need to log in
Where can I get an example of how ajax works in django?
please give a link to a simple full!!! an example of how ajax works in django (which shows the work in templates and in views and in urls) so that you can copy-paste and see what's what. Thank you.
Answer the question
In order to leave comments, you need to log in
There is no need to write anything in the settings. Just access the request via AJAX.
For example using jQuery:
$(window).ready(function () {
$("#somebutton").click(function(){
$.get("test/", {}, function (data) {
$("#somediv").html(data);
});
});
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question