Django base template files -


I want to ask a question about the dezenego base templates. How do they really work..I mean what

I have a base file that can say that there is a static conten and a block content that changes the templates that extends the base file Does.

base.html

  & lt; Html & gt; & Lt; Top & gt; & Lt; script src = "main.js" & gt; & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; div class = "side-nav" & gt; & Lt ;! - Static content here - & gt; & Lt; / Div & gt; & Lt; Div class = "content" & gt; {% Block "content"%} {% endblock%} & lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;   

I have three templates that extend base.html, such as t1.html, t2.html and t3.html. All of them have some dom elements that are edited in the main.html by importedn in base.html. My question is low whether it loads all the pages in my time when I provide a template and thus main.js are run again or does it only present the "dynamic" content of the base file? Does the code of main.js run every time I load a template that increases base.html?

You basically have to understand the basic difference:

Server Working on the Side

Javascript works on the Client Side .

So if JS is again sent again to the client, then it will definitely be played again

You can read more about templates in Jig here:

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -