Django include template using Javascript

Published: 25/09/2018
Django include template using Javascript
Source: STACKOVERFLOW.COM

I came from a Rails background thus the question may seem stupid. In Rails, when we create a Ajax request, then we can update a view by rendering a partial using the javascript selector like the following: $("#dashboardEmails").html("<%=j render partial: 'emails', locals: {emails: @emails} %>"); How can I do that in Django template? I've tried the following: $.ajax({ type: frm.attr('

Read more
Related news
Comment
FACEBOOK