Kintarō
Kintarō

Reputation: 3187

Global template for Django

I am creating a webpage that contains several area that always look the same. Just wonder does Django support "global" template?

If it does, is there any reference that I can follow. (I try to google "Django global template" but not such similar things comes up).

Thanks!

Upvotes: 2

Views: 2058

Answers (1)

Rohan
Rohan

Reputation: 53386

Django's template inheritance exactly solves this problem. You can create one base template and change just a block that needs to change in the derived sub-pages.

Upvotes: 4

Related Questions