I have two applications in my settings. INSTALLED_APPS:
INSTALLED_APPS = [ 'application2', 'application1' ]
and you want application2 to change the template from application 1 (for example, by adding a button).
How to achieve this without overriding the entire template?
Note
The problem is that the two templates have the same name ("mytemplate.html") and the same folder name ("application1"):
\project_root \application1\templates\application1\mytemplate.html \application2\templates\application1\mytemplate.html
so that I can not write:
{% extends "application1\mytemplate.html" %}
because both templates are called "application1 \ mytemplate.html".
source share