<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hitesh Sarda &#187; django</title>
	<atom:link href="http://hitesh.in/tag/django/feed/" rel="self" type="application/rss+xml" />
	<link>http://hitesh.in</link>
	<description>Thoughts on life, technology, education and entrepreneurship</description>
	<lastBuildDate>Thu, 29 Mar 2012 17:13:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Django Flowchart</title>
		<link>http://hitesh.in/2009/django-flow/</link>
		<comments>http://hitesh.in/2009/django-flow/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 12:18:05 +0000</pubDate>
		<dc:creator>Hitesh</dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[flowchart]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://hitesh.in/?p=396</guid>
		<description><![CDATA[Based on my current understanding of Django, this is how a user request is responded to. User requests a page Request reaches Request Middlewares, which could manipulate or answer the request The URLConffinds the related View using urls.py View Middlewares &#8230; <a href="http://hitesh.in/2009/django-flow/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Based on my current understanding of Django, this is how a user request is responded to. </p>
<p><img src="http://hitesh.in/wp-content/uploads/2009/12/120909_1217_DjangoFlowc1.png" alt="Django Flowchart" /></p>
<ol>
<li>User requests a page</li>
<li>Request reaches <em>Request Middlewares</em>, which could manipulate or answer the request</li>
<li>The <em>URLConf</em>finds the related View using urls.py</li>
<li><em>View Middlewares</em> are called, which could manipulate or answer the request</li>
<li>The <em>view</em> function is invoked</li>
<li>The view could optionally access data through models</li>
<li>All <em>model</em>-to-DB interactions are done via a <em>manager</em></li>
<li>Views could use a special <em>context </em>if needed</li>
<li>The context is passed to the <em>Template </em>for rendering</li>
</ol>
<ol style="list-style-type:lower-alpha">
<li>Template uses <em>Filters</em> and <em>Tags</em> to render the output</li>
<li>Output is returned to the view</li>
<li><em>HTTPResponse</em> is sent to the <em>Response Middlerwares</em></li>
<li>Any of the response middlewares can enrich the response or return a completely new response</li>
<li>The response is sent to the user&#8217;s browser.</li>
</ol>
<p>Please leave a comment if I have got something wrong. </p>
]]></content:encoded>
			<wfw:commentRss>http://hitesh.in/2009/django-flow/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Week with python &amp; Django</title>
		<link>http://hitesh.in/2009/week-with-python-django/</link>
		<comments>http://hitesh.in/2009/week-with-python-django/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 13:00:40 +0000</pubDate>
		<dc:creator>Hitesh</dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[learning]]></category>
		<category><![CDATA[pinax]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://hitesh.in/?p=386</guid>
		<description><![CDATA[Spent the last week picking up Python and Django. Notes to self and anyone else who wants a quick start on Python/Django on Windows. Most Linux flavours already come with most tools needed for python development. Requirements: Installed ActivePython 2.6 &#8230; <a href="http://hitesh.in/2009/week-with-python-django/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Spent the last week picking up Python and Django. Notes to self and anyone else who wants a quick start on Python/Django on Windows. Most Linux flavours already come with most tools needed for python development.</p>
<h3>Requirements:</h3>
<ul>
<li><span style="background-color: #ffffff;">Installed <a href="http://downloads.activestate.com/ActivePython/windows/2.6/ActivePython-2.6.4.8-win32-x86.msi" target="_blank">ActivePython 2.6</a></span></li>
<li><span style="background-color: #ffffff;">Installed <a href="http://downloads.activestate.com/Komodo/releases/5.2.3/Komodo-Edit-5.2.3-4312.msi" target="_blank">Komodo Edit</a></span></li>
<li><span style="background-color: #ffffff;">Installed <a href="http://sourceforge.net/projects/pywin32/files/" target="_blank">Python Win32 Extensions</a> (not sure why, but was recommended in some blog post and the project itself does not say much of what it does. Stuff like this gives me the heebie-jeebies.)</span></li>
<li><span style="background-color: #ffffff;">Installed <a href="http://downloads.pinaxproject.com/Pinax-0.7.1-bundle.zip" target="_blank">Pinax</a>, which in turn installed Django.</span></li>
<li><span style="background-color: #ffffff;"><span style="text-decoration: line-through;">Installed </span><a href="http://www.riverbankcomputing.com/software/pyqt/download" target="_blank"><span style="text-decoration: line-through;">PyQt4</span></a></span></li>
<li><span style="background-color: #ffffff;"><span style="text-decoration: line-through;">Installed </span><a href="http://eric-ide.python-projects.org/eric4-download.html" target="_blank"><span style="text-decoration: line-through;">Eric4</span></a> (uninstalled after using it for 10 minutes)</span></li>
</ul>
<h3>Problems faced:</h3>
<ul>
<li>Pinax installation was a bit flawed, it could not install all dependencies. Worked around by manually installing (pip install else easy_install)</li>
<li>Windows 7 was not passing command line arguments to .py scripts. Had to hack registry and add <strong>%*</strong> to the end to make it work. See the Key and value below.</li>
</ul>
<p><a href="http://hitesh.in/wp-content/uploads/2009/12/image.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Registry screenshot" src="http://hitesh.in/wp-content/uploads/2009/12/image_thumb.png" border="0" alt="Registry screenshot" width="640" height="158" /></a></p>
<h3>Getting started:</h3>
<p><strong>Python</strong>: Like everyone else, I followed and recommend <a href="http://diveintopython.org/toc/index.html" target="_blank">&#8216;Dive Into Python&#8217;</a>. But more importantly, this <a href="http://diveintopython.org/appendix/tips.html" target="_blank">page of titbits</a> is amazing extract from the book and quickly brings a Java dev up to speed. I should blog about &#8216;Python for Java developers&#8217;. Time spent 4 hrs.</p>
<p><strong>Pinax</strong>: Stopped at the <a href="http://pinaxproject.com/docs/0.7/install.html" target="_blank">installation step</a>. Will delve further after understanding Django better.</p>
<p><strong>Django</strong>: Followed <a href="http://docs.djangoproject.com/en/dev/intro/tutorial01/" target="_blank">the tutorial</a>, then the <a href="http://www.djangobook.com/" target="_blank">Django Book</a>, and finally the <a href="http://docs.djangoproject.com/en/dev/" target="_blank">Django Docs</a> for a deep dive. Time spent 8 hrs.</p>
<p>Django is surely one on the best documented project and also very straight forward. It suits my style of writing code and I did not feel like giving up in few hours, like the experience I had with RoR. Will surely blog about Django more.</p>
]]></content:encoded>
			<wfw:commentRss>http://hitesh.in/2009/week-with-python-django/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

