djangosnippets.org: Latest snippets tagged with 'extend'https://djangosnippets.org/tags/extend/2010-01-08T23:57:26.258009-06:00Decorate Template Tag (In-Line include and extend with local context)
2010-01-08T23:57:26.258009-06:00rhomberhttps://djangosnippets.org/snippets/1860/<p>I had an issue with the django templating system, where by if I included several different files at the same level on one template.. and all the included templates extended the same base template. It would render the defined blocks for the first inclusion for all. i.e. everything in the …</p>
Freely redistributableurl extension mechanism
2009-04-16T13:40:19.600281-05:00showellhttps://djangosnippets.org/snippets/1444/<p>Executive summary: url "include" on steroids--granular extra parms and validate names in passing</p>
<p>We maintain multiple Django applications, and we use the excellent built-in include mechanism to allow one urls.py to borrow from another:</p>
<p>http://docs.djangoproject.com/en/dev/topics/http/urls/</p>
<p>If you scroll down to the section entitled "Passing extra options to include," you will …</p>
Freely redistributableextend tag with cache
2008-02-20T11:27:52.684665-06:00fredd4https://djangosnippets.org/snippets/609/<p>By default extend tag don't cache parents template. This is extend tag with patch. Workaround for bug: http://code.djangoproject.com/ticket/6586</p>
Freely redistributable