You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
The reason that there is little documentation regarding a combination of Django and JavaScript is because they are almost entirely independent of each other. You can write entire projects in JS without touching Django, and you can write entire Django projects without touching JS.
Exactly "how" you write and format your JS is up to you. I see you've found several examples. I would suggest trying them all to find one that "feels" right to you.
Keep in mind that much, if not all, of your JS code will not be served by Django, but rather by the underlying web server process such as Apache or Nginx. Django doesn't even know or care that it exists.
When the two do interact, most commonly JS is used to retrieve data (usually in JSON) from Django views, but even then, Django does not do anything special with the JS code itself.