Reputation: 3187
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
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