djangosnippets.org: Latest snippets tagged with 'django1.2'https://djangosnippets.org/tags/django12/2010-06-12T12:25:05.268956-05:00Django 1.2+ template loader for Jinja2
2010-06-12T12:25:05.268956-05:00SimonSapinhttps://djangosnippets.org/snippets/2063/<p>This is a minimal template loader for Django 1.2 or higher that loads <a href="http://jinja.pocoo.org/2/">Jinja2</a> templates. It is better integrated with Django than using Jinja2 directly:</p>
<ul>
<li>Your view code is the same</li>
<li>Unmodified generic views use it</li>
<li>RequestContext and context processors still work</li>
</ul>
<p>To use it, add the following to you …</p>
Freely redistributable