When incorporating a third-party django app, I typically want it to be integrated aesthetically with the rest of my django project. While this is typically a matter of overriding the apps 'base.html' (if that), we all structure our templates a little differently, so incompatibilities often arise. For instance, suppose an app defines {% block footer %}
and and makes use of it for a variety of things throughout its templates. If I am already using {% block footer %}
for, say, a nav bar or copyright info, I don't want the app's templates to override my block.
A simpler, related case would be using different block names for the same thing. For instance, {% block extra-head %}
versus {% block extrahead %}
.
What's the best way of resolving these sorts of situations? Ideally, it would be nice to remap blocks, so you could do things like "put the child's {% block footer %}
in the parent's {% block content-footer %}
". Is there any way to get close to that? Or is the only solution to simply override every conflicting template?