Pass django model elemts to javascript file -


is possible pass model elements directly java script file? making custom plugin , plugin in plugins folder. have completed need pass list of model objects it. have few ideas on how hack elements in via template file id prefer if there function call directly within java script file load elements. insight appreciated.

in case should use ajax , request models server. alternative serve javascript file django , populate template


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -