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

  • 0
    Good day.

    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 duplicating code?

    It's obvious from the question - I'm making my first site in Django! :)
    I can't find a manual on the sites, although I think that I probably overlooked it somewhere, the question is typical. Please tell me, the answer will probably be also simple.
    Django Anonymous, Oct 30, 2020

  • 1 Answers
  • 0
    It's not clear what you mean by "interact", but most likely you need templatetags .
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!