<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" 
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
  xmlns:admin="http://webns.net/mvcb/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
<channel>
<title>Aquarionics - Category - Django</title>
<link>http://www.aquarionics.com/category/Django</link>
<description></description>
<dc:language>en-gb</dc:language>
<dc:creator>Aquarion (nicholas@aquarionics.com)</dc:creator>
<dc:rights>Copyright 2008 Aquarion</dc:rights>
<dc:date>2008-08-04T08:00:08+00:00</dc:date>
<admin:generatorAgent rdf:resource="http://www.aquarionics.com/epistula/?v=2.0.3" />
<admin:errorReportsTo rdf:resource="mailto:nicholas@aquarionics.com"/>
<sy:updatePeriod>daily</sy:updatePeriod>
<sy:updateFrequency>8</sy:updateFrequency>
<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
<item>
	<title>Djingle Django Scarecrow</title>
	<link>http://www.aquarionics.com/journal/2006/10/29/Djingle_Django_Scarecrow</link>
	<comments>http://www.aquarionics.com/journal/2006/10/29/Djingle_Django_Scarecrow</comments>
	<description>One of the concepts you may run into if you read into Python and its fans in great depth (and here I mean Python of the programming type rather than the Monty type) is that of &amp;#8220;Guido&amp;#8217;s Time Machine&amp;#8221;, the number of times when you are thinking &amp;#8220;Would it be nice if Python did this&amp;#8230;&amp;#8221; and you suddenly find that yes, that&amp;#8217;s exactly how Python does it, to the...</description>
	<guid isPermaLink="true">http://www.aquarionics.com/journal/2006/10/29/Djingle_Django_Scarecrow</guid>
	<content:encoded><![CDATA[<p>One of the concepts you may run into if you read into Python and its fans in great depth (and here I mean Python of the programming type rather than the Monty type) is that of &#8220;Guido&#8217;s Time Machine&#8221;, the number of times when you are thinking &#8220;Would it be nice if Python did this&#8230;&#8221; and you suddenly find that yes, that&#8217;s exactly how Python does it, to the point where the only way Guido could have possibly considered all this would be if he already knew.</p>

	<p>I&#8217;m having the same kind of thing with Django. Frameworks for validation, existing user system, that kind of thing. Stuff like &#8220;Do you know what would be nice? If I could do something so that my Logged in User&#8217;s Profile appeared in the default scope of a template, so I didn&#8217;t have to pass it in every time, and keep throwing it around the program.&#8221; and suddenly, there are Context Processors.</p>

	<p>The annoying bits are where stuff is under development, or half documented. For example, Having spent a while creating a User Profile system to associate information specific to this system (Authentication code, invite code, email me alerts, for example) and joined it one-to-one with the user system, I then find a tiny little bit of text in the User Auth system docs which says:</p>

<code>get_profile() -- Returns a site-specific profile for this user. Raises django.contrib.auth.models.SiteProfileNotAvailable if the current site doesn't allow profiles.</code>

	<p>This sound really close to what I&#8217;ve spend a while doing myself, but that is the first, last and only reference to it in the docs that I can find.</p>

	<p><span class="caps">OTOH</span>, I&#8217;ve now got a system you can log into and register for, and I&#8217;ve got a deeper understanding of how Django works. Yay.</p>]]></content:encoded>
	<dc:date>2006-10-29T14:36:14+00:00</dc:date>
	<dc:subject>Cantrip</dc:subject>
	<dc:subject>Django</dc:subject>
	<slash:comments>1</slash:comments>
	<slash:section>journal</slash:section>
	<trackback:ping>http://www.aquarionics.com/trackback/journal/1954</trackback:ping>
</item>
</channel>
</rss>