I'm not sure by what you mean; There has always been template inheritance in Django :) Just specify the template you want to extend as the first statement in the template and to override a block in the template, just start a block with the same name as the block you want to override. For example, to override a block called "main" in "some_3rd_party/base.html", you'd do something like:
{% extends "some_3rd_party/base.html" %} ... {% block main %} <your stuff> {% endblock %} ... All the blocks you don't override in the base template get included in the resultant template as is. Sorry if you already knew all that :) On Mon, Jul 9, 2012 at 7:36 AM, tWoolie <rocker.of.b...@gmail.com> wrote: > I have a template in a 3rd party app that i'm trying to override, but only > a single block. > Is there any way that I can do this without copy-pasting the entire > template into the global templates dir just to change a few lines? > Is there any way to create a template that "extends" itself from further > down the search tree? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/snmqZSyfNlkJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Yati Sagade <http://twitter.com/yati_itay> Twitter: @yati_itay <http://twitter.com/yati_itay> | Github: yati-sagade<https://github.com/yati-sagade> Organizing member of TEDx EasternMetropolitanBypass http://www.ted.com/tedx/events/4933 https://www.facebook.com/pages/TEDx-EasternMetropolitanBypass/337763226244869 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.