[Answer]-How to load the data using Ajax in Django template?

1👍

If you use jQuery you can do the following

$.get('/url/of/widget_data/view', success(data, textStatus, jqXHR) {
  $('#idofdivtoupdate').html(data);
});

That would probably be the easiest way to do it.

👤kwbock

Leave a comment