Re: Render Javascript code

2017-09-02 Thread Antonis Christofides
You probably also need to use the "safe" filter, {{variable_name|safe}}. Antonis Christofides http://djangodeployment.com On 2017-09-02 09:28, James Schneider wrote: > > > On Sep 1, 2017 5:05 PM, "Ahmed Ablak" > wrote: > > Hello,  > > I am using Django and h

Re: Render Javascript code

2017-09-01 Thread James Schneider
On Sep 1, 2017 5:05 PM, "Ahmed Ablak" wrote: Hello, I am using Django and have an expensive computing process that takes about 12 or 13 hours and generates javascript charts. When you say JS charts, are you simply referring to data sets, or actual JS that includes your data sets? I did the co

Render Javascript code

2017-09-01 Thread Ahmed Ablak
Hello, I am using Django and have an expensive computing process that takes about 12 or 13 hours and generates javascript charts. I did the computing using the management command and stored the charts in the models as TextField. My question is how to display this javascript code on the t