Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

access django template variable in javascript

<script type="text/javascript"> 
   var a = "{{someDjangoVariable}}";
</script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #access #django #template #variable #javascript
ADD COMMENT
Topic
Name
9+1 =