<?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; flowchart</title>
	<atom:link href="http://hitesh.in/tag/flowchart/feed/" rel="self" type="application/rss+xml" />
	<link>http://hitesh.in</link>
	<description>Thoughts on life, technology, education and entrepreneurship</description>
	<lastBuildDate>Fri, 30 Dec 2011 06:00:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</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>
	</channel>
</rss>

