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
<script>
var json = {{ pydic_jsonized  }};
</script>

But pydic_jsonized is just furiously big, and is written as harded coded 
data in the html page, which subsequently takes a very long time to load 
(30s). Is there a mean to retrieve data in the js script in an abstract 
manner ?

Thanks

-- 
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-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7b871c16-929a-40b0-8e7f-a62349a98657%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to