Re: How do I get Django to ignore javascript code because its throwing an exception

2014-07-31 Thread Mike Dewhirst
On 1/08/2014 3:37 AM, G Z wrote: doesn't work because then my charts dont appear when i enclose the script tag. Can you put the js into a file and use the template to include it? On Wednesday, July 30, 2014 7:44:48 PM UTC-6, Camilo Torres wrote: Hello, you can use 'verbatim': https:

Re: How do I get Django to ignore javascript code because its throwing an exception

2014-07-31 Thread G Z
doesn't work because then my charts dont appear when i enclose the script tag. On Wednesday, July 30, 2014 7:44:48 PM UTC-6, Camilo Torres wrote: > > Hello, you can use 'verbatim': > https://docs.djangoproject.com/en/1.6/ref/templates/builtins/#verbatim > > On Wednesday, July 30, 2014 6:59:05 PM

Re: How do I get Django to ignore javascript code because its throwing an exception

2014-07-30 Thread Camilo Torres
Hello, you can use 'verbatim': https://docs.djangoproject.com/en/1.6/ref/templates/builtins/#verbatim On Wednesday, July 30, 2014 6:59:05 PM UTC-4:30, G Z wrote: > > so im using the following java script > > var cpuChart = document.getElementById('cpu').getContext('2d'); > new Chart(cpuCha

How do I get Django to ignore javascript code because its throwing an exception

2014-07-30 Thread G Z
so im using the following java script var cpuChart = document.getElementById('cpu').getContext('2d'); new Chart(cpuChart).Line(cpuData,{ bezierCurve: false, datasetFill : false, legendTemplate : "-legend\"><% for (var i=0; i\"><%if(datasets[i].label){%><%=datasets[