P
P
Pavel Bezrukov2015-06-03 23:33:30
Django
Pavel Bezrukov, 2015-06-03 23:33:30

How to describe the behavior of a site template block in Django?

Good afternoon.
There is a base.html template with search, authorization, feedback forms, and any other objects with business logic.
How to interact with them from different views, different applications without code duplication?
It's obvious from the question - I'm making the first site on Django! :)
I can't find the manual on the sites, although I think that I must have overlooked it somewhere, the question is typical. Please tell me, the answer is probably also simple.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max, 2015-06-04
@bezrukovPS

It's not clear what you mean by "interact", but most likely you need templatetags .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question