<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>David Cramer's Blog - Latest Comments in Using Jinja2 with Django (via Coffin)</title><link>http://davidcramer.disqus.com/</link><description></description><atom:link href="https://davidcramer.disqus.com/thread_02/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 13 Dec 2010 09:50:41 -0000</lastBuildDate><item><title>Re: Using Jinja2 with Django (via Coffin)</title><link>http://cramer.io//479/using-jinja2-with-django.html#comment-111078288</link><description>&lt;p&gt;Things not supported by Coffin: "Django-type safe strings passed through the context are not converted and therefore not recognized by Jinja2. For example, a notable place were this would occur is the HTML generation of Django Forms."&lt;/p&gt;&lt;p&gt;Lack of support for Django Forms would be a show-stopper for me.  Any work-arounds?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jeff Bauer</dc:creator><pubDate>Mon, 13 Dec 2010 09:50:41 -0000</pubDate></item><item><title>Re: Using Jinja2 with Django (via Coffin)</title><link>http://cramer.io//479/using-jinja2-with-django.html#comment-103605285</link><description>&lt;p&gt;It would be very nice to consolidate this work into one project and perhaps submit the necessary patches to Django to make the integration even easier.&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Playground Equipment</dc:creator><pubDate>Fri, 26 Nov 2010 14:30:56 -0000</pubDate></item><item><title>Re: Using Jinja2 with Django (via Coffin)</title><link>http://cramer.io//479/using-jinja2-with-django.html#comment-38940837</link><description>&lt;p&gt;I having problems with i18n. I'm in the same situation of dmlance. I get this error when I try to render a template with "trans" tags:&lt;/p&gt;&lt;p&gt;'gettext' is undefined&lt;/p&gt;&lt;p&gt;This is the code of my template:&lt;/p&gt;&lt;p&gt;{{ _("Hello") }}&lt;/p&gt;&lt;p&gt;I have added the i18n extension in &lt;a href="http://settings.py" rel="nofollow noopener" target="_blank" title="settings.py"&gt;settings.py&lt;/a&gt; but it doesn't work. Any solution?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alberto</dc:creator><pubDate>Sat, 23 Jan 2010 13:38:03 -0000</pubDate></item><item><title>Re: Using Jinja2 with Django (via Coffin)</title><link>http://cramer.io//479/using-jinja2-with-django.html#comment-38940836</link><description>&lt;p&gt;Looking at the filter/extension examples above, how does done access the django context variable that's available to you when you write custom django template tags?&lt;/p&gt;&lt;p&gt;The reason I ask is because I'm trying to migrate this snippet here: &lt;a href="http://www.djangosnippets.org/snippets/361/" rel="nofollow noopener" target="_blank" title="http://www.djangosnippets.org/snippets/361/"&gt;http://www.djangosnippets.o...&lt;/a&gt; to a jinja template.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">koobz</dc:creator><pubDate>Mon, 30 Nov 2009 17:46:04 -0000</pubDate></item><item><title>Re: Using Jinja2 with Django (via Coffin)</title><link>http://cramer.io//479/using-jinja2-with-django.html#comment-38940834</link><description>&lt;p&gt;Coffin have problems with i18n  (trans tags and related stuff), looks like they broke jinja2 gettext init.&lt;br&gt;Tested with latest coffin, django, jinja2 and py2.6&lt;br&gt;djajinja works without any problems.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dmlance</dc:creator><pubDate>Sat, 10 Oct 2009 20:21:56 -0000</pubDate></item><item><title>Re: Using Jinja2 with Django (via Coffin)</title><link>http://cramer.io//479/using-jinja2-with-django.html#comment-38940833</link><description>&lt;p&gt;I am using Jinja2 + Django on every project and I wanted to use it for external apps too.&lt;/p&gt;&lt;p&gt;Using this patch &lt;a href="http://code.djangoproject.com/ticket/6691" rel="nofollow noopener" target="_blank" title="http://code.djangoproject.com/ticket/6691"&gt;http://code.djangoproject.c...&lt;/a&gt; and a custom template loader + a small wrapper around Jinja templates that looks in a directory for Jinja2 templates and falls back to Django templates if none is available. There are so many projects/methods out there doing exactly the same thing (at least four and I didn't even know about djanjinja).&lt;/p&gt;&lt;p&gt;It would be very nice to consolidate this work into one project and perhaps submit the necessary patches to Django to make the integration even easier.&lt;/p&gt;&lt;p&gt;On a related note: Jinja 2.2 has been released a few days ago.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lars</dc:creator><pubDate>Thu, 17 Sep 2009 09:51:52 -0000</pubDate></item><item><title>Re: Using Jinja2 with Django (via Coffin)</title><link>http://cramer.io//479/using-jinja2-with-django.html#comment-38940832</link><description>&lt;p&gt;I wrote &lt;a href="http://bitbucket.org/zacharyvoase/djanjinja" rel="nofollow noopener" target="_blank" title="http://bitbucket.org/zacharyvoase/djanjinja"&gt;http://bitbucket.org/zachar...&lt;/a&gt; to scratch exactly the same itch. It looks like the two projects are relatively similar in their goals.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Zack</dc:creator><pubDate>Wed, 16 Sep 2009 07:01:09 -0000</pubDate></item><item><title>Re: Using Jinja2 with Django (via Coffin)</title><link>http://cramer.io//479/using-jinja2-with-django.html#comment-38940831</link><description>&lt;p&gt;FUD would imply something illegitimate. I had loads of issues getting it compiled through Fink.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Cramer</dc:creator><pubDate>Tue, 15 Sep 2009 12:40:53 -0000</pubDate></item><item><title>Re: Using Jinja2 with Django (via Coffin)</title><link>http://cramer.io//479/using-jinja2-with-django.html#comment-38940830</link><description>&lt;p&gt;what does it means "the problem of getting bzr working on my Mac" ??? &lt;br&gt;It's not more complicated than get git or hg or svn ... use macports and you'll get bzr working like a charm. Moreover there is a .pkg installer (that I personally don't like but it works too without a problem)&lt;br&gt;Just to stop the FUD&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Marco</dc:creator><pubDate>Tue, 15 Sep 2009 02:41:36 -0000</pubDate></item><item><title>Re: Using Jinja2 with Django (via Coffin)</title><link>http://cramer.io//479/using-jinja2-with-django.html#comment-38940829</link><description>&lt;p&gt;Hi,&lt;br&gt;I use this connector to make Jinja2 work with Django. Super easy and working everywhere even on AppEngine:&lt;br&gt;&lt;a href="http://bitbucket.org/trevor/chouwa/" rel="nofollow noopener" target="_blank" title="http://bitbucket.org/trevor/chouwa/"&gt;http://bitbucket.org/trevor...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Redliner&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guest</dc:creator><pubDate>Tue, 15 Sep 2009 02:27:51 -0000</pubDate></item></channel></rss>