I think that you need to do some: render_to_response to that *.js file
Because Django is not replacing the *.js Django is replacing the *.html
file
> in my template file, there's a var which i can use {{var1}} to get its
> value. and if i put the code
>
>
> document.write({{var1}});
>
>
> DI
in my template file, there's a var which i can use {{var1}} to get its
value. and if i put the code
document.write({{var1}});
DIRECTLY in my template file, it's OK, the var1's value appears in my
.html file.
but if I use
in template file, and then in my.js, write
document.write({{var1}});
2 matches
Mail list logo