Francesco agree.  Unfortunately it is not possible to use absolute paths in templates. So the overextend seems a solution. <span></span><br><br>Il giovedì 20 ottobre 2016, Francesco Bartoli <<a href="mailto:xbartolone@gmail.com">xbartolone@gmail.com</a>> ha scritto:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi devs,<div><br></div><div>I found that circular inheritance from a geonode-project perspective is not well managed yet. Just to explain better the issue:</div><div><br></div><div><b>[geonode]</b></div><div>geonode/base/templates/base/<wbr>resourcebase_info_panel.html</div><div><br></div><div><div style="font-size:12px">{% block morecontent %}</div><div style="font-size:12px"><br></div><div style="font-size:12px"><some content></div><div style="font-size:12px"><br></div><div style="font-size:12px">{% endblock %}</div></div><div><br></div><div><b>[my_geonode_project]</b></div><div>my_geonode_project/templates/<wbr>base/resourcebase_info_panel.<wbr>html</div><div><br></div><div><div style="font-size:12px">{% extends "base/resourcebase_info_panel.<wbr>html" %}</div><div style="font-size:12px"><br></div><div style="font-size:12px">{% block morecontent %}</div><div style="font-size:12px"><br></div><div style="font-size:12px">{{ block.super }}</div><div style="font-size:12px"><div>hello geonode developers</div></div><div style="font-size:12px"><br></div><div style="font-size:12px">{% endblock %}</div></div><div><br></div><div>This configuration ends up in such an error:</div><div><br></div><div>"RuntimeError: maximum recursion depth exceeded while calling a Python object”</div><div><br></div><div>I have tried to adopt this approach [1] but doesn’t resolve in my case, the only way is to follow the alternative one with <a href="http://github.com/stephenmcd/django-overextends" target="_blank">django-overextends</a>. Long story short I’d like to add this latter to <a href="https://github.com/GeoNode/geonode-project" target="_blank">geonode-project</a> as dependency and a bit of documentation how to use it for extending core templates.</div><div><br></div><div>Any objections?</div><div><br></div><div>Thanks,</div><div>Francesco</div><div><br></div><div>[1] <a href="https://code.djangoproject.com/wiki/ExtendingTemplates#Extendingtemplates" target="_blank">https://code.<wbr>djangoproject.com/wiki/<wbr>ExtendingTemplates#<wbr>Extendingtemplates</a></div><div><br><div><div>Il giorno 20/ott/2016, alle ore 10:05, Francesco Bartoli <<a href="javascript:_e(%7B%7D,'cvml','xbartolone@gmail.com');" target="_blank">xbartolone@gmail.com</a>> ha scritto:</div><br><blockquote type="cite"><div style="word-wrap:break-word">Thanks Simone. I’m going to move this discussion to the dev list because at the moment the circular inheritance wouldn’t work well from geonode-project, at least from what I investigated so far.<div><br></div><div>Francesco</div><div> <br><div><div>Il giorno 20/ott/2016, alle ore 07:23, Simone Dalmasso <<a href="javascript:_e(%7B%7D,'cvml','simone.dalmasso@gmail.com');" target="_blank">simone.dalmasso@gmail.com</a>> ha scritto:</div><br><blockquote type="cite"><div dir="ltr">Francesco, I don't see that harmful. Please go on.</div><div class="gmail_extra"><br><div class="gmail_quote">2016-10-19 9:03 GMT+02:00 Francesco Bartoli <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','xbartolone@gmail.com');" target="_blank">xbartolone@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<div><div><br></div><div>I'd like to add 'block' syntax<wbr> to the template of the info panel in the core resourcebase_info_panel.html in order to extend it with additional information. Do you think this can be useful to merge in the core as at the moment I don't know how a sane approach would be from a django-project?</div></div><div><br></div><div>Any different idea?</div><div><br></div><div>Thanks,</div><div>Francesco</div><br><u></u>Sent from <a href="https://link.nylas.com/link/43o9gzlmd58gqwkxv3di3wjcc/local-b8e3f308-9240/0?redirect=https%3A%2F%2Fnylas.com%2Fn1%3Fref%3Dn1&r=Z2Vvbm9kZS11c2Vyc0BsaXN0cy5vc2dlby5vcmc=" target="_blank">Nylas N1</a>, the extensible, open source mail client.<u></u><img width="0" height="0" style="border:0;width:0;min-height:0" src="https://link.nylas.com/open/43o9gzlmd58gqwkxv3di3wjcc/local-b8e3f308-9240?r=Z2Vvbm9kZS11c2Vyc0BsaXN0cy5vc2dlby5vcmc="><br>______________________________<wbr>_________________<br>
geonode-users mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','geonode-users@lists.osgeo.org');" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman<wbr>/listinfo/geonode-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature">Simone </div>
</div>
</blockquote></div><br></div></div></blockquote></div><br></div></div></blockquote><br><br>-- <br>Simone <br>