djangosnippets.org: Latest snippets posted by luckystarrhttp://djangosnippets.org/users/luckystarr/2007-09-11T03:37:39.558072-05:00luckystarrimproved getattr template filter
2007-09-11T03:37:39.558072-05:00luckystarrhttp://djangosnippets.org/snippets/411/<p>I tried to use <a href="http://www.djangosnippets.org/users/joshua/">Joshua's</a> nice and very useful <a href="http://www.djangosnippets.org/snippets/38/">getattr template filter (#38)</a>, but ran into a few problems.</p>
<p>I used it on objects outside of my control (admin internals, coughcough) and on some of them the code didn't catch the resulting exceptions. So I improved the error handling …</p>
Freely redistributableWiki-like markup for sub templates
2007-09-07T07:58:57.218182-05:00luckystarrhttp://djangosnippets.org/snippets/408/<p>I wanted to have the possibility to use a wiki-like markup style in my flatpages for various purposes (embedding images, quoting, etc.)</p>
<p>After a few dead ends I came up with this, which is quite nice I think.</p>
<blockquote>
<p>It basically takes a named tag, loads the corresponding template, passes in …</p></blockquote>
Freely redistributable