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.
- [Answer]-How to implement user specific real time notifications in django using swampdragon?
- [Answer]-Django + Extjs 5.1.1
- [Answer]-Representing many to many model in django as json
Source:stackexchange.com