[Answer]-Django base template files

1👍

You basically have to understand a basic difference:

Rendering in done on the Server Side

JavaScript works on Clent side.

So if JS is sent again to Client side than it will definitely run again

You can read more about Templates in Django here : https://docs.djangoproject.com/en/1.5/topics/templates/

0👍

Django put together all templates at first. After that completed page will be send to browser. Your javascript code run in browser with full page.

Leave a comment