<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Caffeinated Simpleton - Latest Comments in Django round 2</title><link>http://caffinatedsimpleton.disqus.com/</link><description>My personal blog</description><atom:link href="https://caffinatedsimpleton.disqus.com/django_round_2/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sat, 14 Mar 2009 11:01:22 -0000</lastBuildDate><item><title>Re: Django round 2</title><link>https://justin.harmonize.fm/?p=14#comment-7213626</link><description>&lt;p&gt;Thank you for sharing this information.&lt;br&gt;&lt;a href="http://www.reverseaccesslivedoor.net" rel="nofollow noopener" target="_blank" title="http://www.reverseaccesslivedoor.net"&gt;Reverse Access Livedoor&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">aaronasjones</dc:creator><pubDate>Sat, 14 Mar 2009 11:01:22 -0000</pubDate></item><item><title>Re: Django round 2</title><link>https://justin.harmonize.fm/?p=14#comment-2225438</link><description>&lt;p&gt;web designer doesn't need to learn Python just because there's some python in the template - this is a common overreaction to a problem that doesn't really exist.  I wrote an old rant about this here:  &lt;a href="http://techspot.zzzeek.org/?p=3" rel="nofollow noopener" target="_blank" title="http://techspot.zzzeek.org/?p=3"&gt;http://techspot.zzzeek.org/...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">zzzeek</dc:creator><pubDate>Sun, 07 Sep 2008 23:20:56 -0000</pubDate></item><item><title>Re: Django round 2</title><link>https://justin.harmonize.fm/?p=14#comment-2151005</link><description>&lt;p&gt;I disagree. I think that content should be provided by the controller, but things that have to do with the look should be provided by the template.&lt;/p&gt;&lt;p&gt;In one project, I have a base that every template inherits from. There are some basic view things that it figures out. Like if it's a mac, do one thing, if it's a PC, do another. I don't want to pass this display data with actual content every time, it's much better if the template just figures it out itself.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">justin</dc:creator><pubDate>Fri, 05 Sep 2008 17:26:50 -0000</pubDate></item><item><title>Re: Django round 2</title><link>https://justin.harmonize.fm/?p=14#comment-2150488</link><description>&lt;p&gt;Hello.&lt;/p&gt;&lt;p&gt;This will do:&lt;br&gt;   {% for ping in object.pingback_set.all %}&lt;/p&gt;&lt;p&gt;Current time, the name of the file, etc. - just pass them into a template as variables if you need them.&lt;br&gt;Web designer is not supposed to learn Python to create a template, programmer will make available any variables/info to her ;-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Yakovlev</dc:creator><pubDate>Fri, 05 Sep 2008 16:46:39 -0000</pubDate></item><item><title>Re: Django round 2</title><link>https://justin.harmonize.fm/?p=14#comment-2143288</link><description>&lt;p&gt;I agree that you shouldn't use python in your templates, but there is a limit to this. For instance, lets say I wanted to print every pingback for a blog entry. I should be able to do something like:&lt;/p&gt;&lt;p&gt;{% for ping in object.pingback_set.all() %}&lt;/p&gt;&lt;p&gt;You can't do something as simple as this in the django template engine. There are other instances where arbitrary python is nice. Let's say you want to put the current time on the page. Or set the title to the name of the file. All these things benefit from being able to execute normal python, and are not outside the realm of the template engine.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">justin</dc:creator><pubDate>Fri, 05 Sep 2008 10:13:38 -0000</pubDate></item><item><title>Re: Django round 2</title><link>https://justin.harmonize.fm/?p=14#comment-2140893</link><description>&lt;p&gt;well use an other template engine.&lt;/p&gt;&lt;p&gt;But you should not mix python in you html so Django makes sense.&lt;br&gt;If you like sqlAlch. there is a project that is integrating it.&lt;/p&gt;&lt;p&gt;Is pylons not the problem that it is lose?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nono</dc:creator><pubDate>Fri, 05 Sep 2008 04:47:12 -0000</pubDate></item><item><title>Re: Django round 2</title><link>https://justin.harmonize.fm/?p=14#comment-2027719</link><description>&lt;p&gt;Nice one. Quite well written.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dhananjay Nene</dc:creator><pubDate>Wed, 03 Sep 2008 04:27:39 -0000</pubDate></item></channel></rss>