S
S
stepar2018-10-21 20:44:58
Django
stepar, 2018-10-21 20:44:58

Question about django templates?

There is a main template base.html in which the sidebar is shorter
and it is connected to each page
. How can I dynamically display tabs with the sidebar
there?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2018-10-21
@stepar

Declare a block in base.html and set its content in the inherited template.

A
Animkim, 2018-10-22
@Animkim

Google context processors, if the sidebar is the same on all pages inherited from base, then it will do.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question