<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Cheetah vs. kid: 1 - 0</title>
	<atom:link href="http://therning.org/magnus/archives/95/feed" rel="self" type="application/rss+xml" />
	<link>http://therning.org/magnus/archives/95</link>
	<description>Incoherent mumblings</description>
	<pubDate>Fri, 05 Dec 2008 11:30:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Magnus</title>
		<link>http://therning.org/magnus/archives/95#comment-12940</link>
		<dc:creator>Magnus</dc:creator>
		<pubDate>Thu, 08 Feb 2007 23:05:18 +0000</pubDate>
		<guid isPermaLink="false">http://therning.org/magnus/archives/95#comment-12940</guid>
		<description>&lt;p&gt;yguaratÃ£, nope, no suggestions. I haven't played with cheeta/cherrypy in a long time. Sorry I couldn't be of any help...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>yguaratÃ£, nope, no suggestions. I haven&#8217;t played with cheeta/cherrypy in a long time. Sorry I couldn&#8217;t be of any help&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yguaratÃ£</title>
		<link>http://therning.org/magnus/archives/95#comment-12904</link>
		<dc:creator>yguaratÃ£</dc:creator>
		<pubDate>Thu, 08 Feb 2007 19:12:58 +0000</pubDate>
		<guid isPermaLink="false">http://therning.org/magnus/archives/95#comment-12904</guid>
		<description>&lt;p&gt;Hey, have you tried to use Cheetah with cherrypy session? When i use cheetah with cherrypy session the session doesn't work correctly. In other words, the cherrypy doesn't keep the session values when using cheetah templates. Any suggestion?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hey, have you tried to use Cheetah with cherrypy session? When i use cheetah with cherrypy session the session doesn&#8217;t work correctly. In other words, the cherrypy doesn&#8217;t keep the session values when using cheetah templates. Any suggestion?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Holovaty</title>
		<link>http://therning.org/magnus/archives/95#comment-24</link>
		<dc:creator>Adrian Holovaty</dc:creator>
		<pubDate>Tue, 10 Jan 2006 04:00:49 +0000</pubDate>
		<guid isPermaLink="false">http://therning.org/magnus/archives/95#comment-24</guid>
		<description>&lt;p&gt;BTW, there's an unofficial Django screencast here:&lt;/p&gt;

&lt;p&gt;http://www.throwingbeans.org/django_screencasts.html&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>BTW, there&#8217;s an unofficial Django screencast here:</p>
<p><a href="http://www.throwingbeans.org/django_screencasts.html" rel="nofollow">http://www.throwingbeans.org/django_screencasts.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Holovaty</title>
		<link>http://therning.org/magnus/archives/95#comment-23</link>
		<dc:creator>Adrian Holovaty</dc:creator>
		<pubDate>Tue, 10 Jan 2006 03:57:35 +0000</pubDate>
		<guid isPermaLink="false">http://therning.org/magnus/archives/95#comment-23</guid>
		<description>&lt;p&gt;To answer your question, here's what your example would look like as a Django "view":&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
"""
from django.core.extensions import render_to_response
def homepage(request):
    context = {'title': 'Test Page', 'lines': ['qwe', 'asd', 'zxc']}
    return render_to_response('templatename', context)
"""
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You'd design your URL(s) in a separate file -- a &lt;a href="http://www.djangoproject.com/documentation/url_dispatch/" rel="nofollow"&gt;URLconf&lt;/a&gt; -- which is essentially a "table of contents" of your site's URL structure.&lt;/p&gt;

&lt;p&gt;Feel free to ask any more questions, or join the &lt;a href="http://groups.google.com/group/django-users" rel="nofollow"&gt;django-users mailing list&lt;/a&gt;, which is full of helpful people!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>To answer your question, here&#8217;s what your example would look like as a Django &#8220;view&#8221;:</p>
<p><code><br />
"""<br />
from django.core.extensions import render_to_response<br />
def homepage(request):<br />
    context = {'title': 'Test Page', 'lines': ['qwe', 'asd', 'zxc']}<br />
    return render_to_response(&#8217;templatename&#8217;, context)<br />
&#8220;&#8221;"<br />
</code></p>
<p>You&#8217;d design your URL(s) in a separate file &#8212; a <a href="http://www.djangoproject.com/documentation/url_dispatch/" rel="nofollow">URLconf</a> &#8212; which is essentially a &#8220;table of contents&#8221; of your site&#8217;s URL structure.</p>
<p>Feel free to ask any more questions, or join the <a href="http://groups.google.com/group/django-users" rel="nofollow">django-users mailing list</a>, which is full of helpful people!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Magnus</title>
		<link>http://therning.org/magnus/archives/95#comment-22</link>
		<dc:creator>Magnus</dc:creator>
		<pubDate>Mon, 09 Jan 2006 22:53:47 +0000</pubDate>
		<guid isPermaLink="false">http://therning.org/magnus/archives/95#comment-22</guid>
		<description>&lt;p&gt;Yes, point gotten. Very nice actually. Might be worth a look that Django thingie ;)&lt;/p&gt;

&lt;p&gt;How does CherryPy and (the relevant part of) Django compare?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Yes, point gotten. Very nice actually. Might be worth a look that Django thingie <img src='http://therning.org/magnus/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>How does CherryPy and (the relevant part of) Django compare?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Holovaty</title>
		<link>http://therning.org/magnus/archives/95#comment-21</link>
		<dc:creator>Adrian Holovaty</dc:creator>
		<pubDate>Mon, 09 Jan 2006 22:10:22 +0000</pubDate>
		<guid isPermaLink="false">http://therning.org/magnus/archives/95#comment-21</guid>
		<description>&lt;p&gt;Ah, some of that was eaten by the comment system. But you get the point. :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Ah, some of that was eaten by the comment system. But you get the point. <img src='http://therning.org/magnus/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Holovaty</title>
		<link>http://therning.org/magnus/archives/95#comment-20</link>
		<dc:creator>Adrian Holovaty</dc:creator>
		<pubDate>Mon, 09 Jan 2006 22:09:44 +0000</pubDate>
		<guid isPermaLink="false">http://therning.org/magnus/archives/95#comment-20</guid>
		<description>&lt;p&gt;Here's how it'd look using &lt;a href="http://www.djangoproject.com" rel="nofollow"&gt;Django&lt;/a&gt;'s template language. I hope this ends up being formatted correctly... :)&lt;/p&gt;

&lt;p&gt;&lt;code&gt;

  
    {{ title }}
  &lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;{{ title }}&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&#60;ol&#62;
  {% for line in lines %}
  &#60;li&#62;{{ line }}&#60;/li&#62;
  {% endfor %}
&#60;/ol&#62;

&#60;dl&#62;
  &#60;span&#62;
    {% for line in lines %}
    &#60;dt&#62;Line {{ forloop.counter }}&#60;/dt&#62;
    &#60;dd&#62;{{ line }}&#60;/dd&#62;
    {% endfor %}
  &#60;/span&#62;
&#60;/dl&#62;

&#60;p&#62;End of page {{ title }}&#60;/p&#62;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;

&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Here&#8217;s how it&#8217;d look using <a href="http://www.djangoproject.com" rel="nofollow">Django</a>&#8217;s template language. I hope this ends up being formatted correctly&#8230; <img src='http://therning.org/magnus/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><code></p>
<p>    {{ title }}<br />
  </code></p>
</p>
<p>{{ title }}</p>
<pre><code>&lt;ol&gt;
  {% for line in lines %}
  &lt;li&gt;{{ line }}&lt;/li&gt;
  {% endfor %}
&lt;/ol&gt;

&lt;dl&gt;
  &lt;span&gt;
    {% for line in lines %}
    &lt;dt&gt;Line {{ forloop.counter }}&lt;/dt&gt;
    &lt;dd&gt;{{ line }}&lt;/dd&gt;
    {% endfor %}
  &lt;/span&gt;
&lt;/dl&gt;

&lt;p&gt;End of page {{ title }}&lt;/p&gt;
</code></pre></p>
]]></content:encoded>
	</item>
</channel>
</rss>
