python - Django Two apps are sharing their templates -


in django project there has 6 apps installed. among them 2 of them sharing templates.

while creating app 1 view , rendering app 2 templates first searching whether there .html template on app 1 template folder if not it's bringing app 2. same goes app 2.

but if trying other applications templates folder's .html file it's showing templatedoesnotexist.

how possible 2 app sharing template while haven't written code ???

assuming apps custom apps (not installed via pip, source exists in project folder), of directories mentioned in templates configuration, viz. dirs , app_dirs option accessible all apps (based on correct naming / relativeness / heirarchy).

it have 2 different templates 2 different apps, if directory structure incorrect, may end 1 of them not being accessible, technically sharing template between apps, similar markwalker_ mentioned.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -