Re: How not to explicly write very very big json object when rendering page in django template ?

2015-01-15 Thread Matlau Issu
OK. AJAX is the solution. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-

Re: How not to explicly write very very big json object when rendering page in django template ?

2014-11-03 Thread Matlau Issu
Thank you for your help. I need all the data. Le lundi 3 novembre 2014 00:41:43 UTC+1, Vijay Khemlani a écrit : > > Do you really need all the data in that dictionary for the page? You could > request the necessary parts by AJAX after the page has loaded. > > On Sun, Nov 2, 2014 at 6:59 PM, Matla

Re: How not to explicly write very very big json object when rendering page in django template ?

2014-11-02 Thread Vijay Khemlani
Do you really need all the data in that dictionary for the page? You could request the necessary parts by AJAX after the page has loaded. On Sun, Nov 2, 2014 at 6:59 PM, Matlau Issu wrote: > I mean, in my views.py i do : > return render(request, 'myapp/detail.html', { pydic_jsonized : > json.du

How not to explicly write very very big json object when rendering page in django template ?

2014-11-02 Thread Matlau Issu
I mean, in my views.py i do : return render(request, 'myapp/detail.html', { pydic_jsonized : json.dumps(python_dict) } ) then in my html, i get pydic_jsonized with var json = {{ pydic_jsonized }}; But pydic_jsonized is just furiously big, and is written as harded coded data in the