views:

82

answers:

1

this is my code:

$('.left').html("{% include 'foot.html' %}")

it will show error ,

so how to make it running.

thanks

+1  A: 

This isn't going to do anything if your JavaScript isn't processed by webapp or Django before it gets sent to the client because the templating pseudo-language that they use will only work server-side. You'll also want to make sure you use the |safe filter or your HTML will get escaped; from what I can infer from the (very little) code you supplied this isn't the desired behavior.

indieinvader