<?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>To Blog or Not To Blog &#187; Web-Development</title>
	<atom:link href="http://adil.2scomplement.com/category/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://adil.2scomplement.com</link>
	<description></description>
	<lastBuildDate>Thu, 24 Dec 2009 14:55:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>django: Hacking django object_list to take list of templates</title>
		<link>http://adil.2scomplement.com/2009/12/django-hacking-django-views-generic-list_detail-object_list-to-take-list-of-templates/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=django-hacking-django-views-generic-list_detail-object_list-to-take-list-of-templates</link>
		<comments>http://adil.2scomplement.com/2009/12/django-hacking-django-views-generic-list_detail-object_list-to-take-list-of-templates/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 07:29:56 +0000</pubDate>
		<dc:creator>Adil Saleem</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Web-Development]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[object_list]]></category>
		<category><![CDATA[select_template]]></category>
		<category><![CDATA[template_loader]]></category>

		<guid isPermaLink="false">http://adil.2scomplement.com/?p=244</guid>
		<description><![CDATA[I recently found that you can pass a list or tuple to both django.template.loader.render_to_string and django.shortcuts.render_to_response. These functions iterate over the list of templates and render the first template that exists. The magic lies with the django.template.loader.get_template and select_template functions which take a single template name or list of templates respectively.
This is a great functionality [...]


No related posts.]]></description>
		<wfw:commentRss>http://adil.2scomplement.com/2009/12/django-hacking-django-views-generic-list_detail-object_list-to-take-list-of-templates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>django: How to get model class from model name</title>
		<link>http://adil.2scomplement.com/2009/06/django-how-to-get-model-class-from-model-class-name/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=django-how-to-get-model-class-from-model-class-name</link>
		<comments>http://adil.2scomplement.com/2009/06/django-how-to-get-model-class-from-model-class-name/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 07:17:52 +0000</pubDate>
		<dc:creator>Adil Saleem</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Web-Development]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[class from string]]></category>
		<category><![CDATA[ContentType]]></category>
		<category><![CDATA[models]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://adil.2scomplement.com/?p=170</guid>
		<description><![CDATA[How do you get the model class object from a string containing model name?
This came up multiple times during SeenReport development. While recording views, saving votes and adding comment on an object, I had to get the model class using the model name. The scenario would be,

The view receives the model name and object id
Fetch [...]


Related posts:<ol><li><a href='http://adil.2scomplement.com/2009/12/django-hacking-django-views-generic-list_detail-object_list-to-take-list-of-templates/' rel='bookmark' title='Permanent Link: django: Hacking django object_list to take list of templates'>django: Hacking django object_list to take list of templates</a></li></ol>]]></description>
		<wfw:commentRss>http://adil.2scomplement.com/2009/06/django-how-to-get-model-class-from-model-class-name/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>django: How to expire session on browser close</title>
		<link>http://adil.2scomplement.com/2009/04/django-how-to-expire-session-on-browser-close/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=django-how-to-expire-session-on-browser-close</link>
		<comments>http://adil.2scomplement.com/2009/04/django-how-to-expire-session-on-browser-close/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 14:43:20 +0000</pubDate>
		<dc:creator>Adil Saleem</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web-Development]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[browser close]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[set_expiry]]></category>

		<guid isPermaLink="false">http://adil.2scomplement.com/?p=94</guid>
		<description><![CDATA[django employs cookies to track the user session. settings.SESSION_COOKIE_AGE defines the session expiration age in seconds. So, the user logs in once and can stay logged in for hours (even days).
But what if a user wants the session to expire as soon as the browser is closed? This is perfectly desirable for users on public/shared [...]


Related posts:<ol><li><a href='http://adil.2scomplement.com/2009/12/django-hacking-django-views-generic-list_detail-object_list-to-take-list-of-templates/' rel='bookmark' title='Permanent Link: django: Hacking django object_list to take list of templates'>django: Hacking django object_list to take list of templates</a></li></ol>]]></description>
		<wfw:commentRss>http://adil.2scomplement.com/2009/04/django-how-to-expire-session-on-browser-close/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>django: generating absolute URLs</title>
		<link>http://adil.2scomplement.com/2009/02/django-generating-absolute-urls/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=django-generating-absolute-urls</link>
		<comments>http://adil.2scomplement.com/2009/02/django-generating-absolute-urls/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 15:05:05 +0000</pubDate>
		<dc:creator>Adil Saleem</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Web-Development]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[absolute urls]]></category>

		<guid isPermaLink="false">http://adil.2scomplement.com/?p=90</guid>
		<description><![CDATA[As I mentioned earlier, django provides a convenient and highly de-coupled way to manipulate URLs. At the heart of this functionality is django.core.urlresolver.reverse. This function however generates relative URLs e.g. /album/my-first-album/
At See&#8217;n'Report, we wanted every user to have a sub-domain so, hitting http://username.seenreport.com takes you to the user profile. But this created a small problem; all [...]


Related posts:<ol><li><a href='http://adil.2scomplement.com/2009/12/django-hacking-django-views-generic-list_detail-object_list-to-take-list-of-templates/' rel='bookmark' title='Permanent Link: django: Hacking django object_list to take list of templates'>django: Hacking django object_list to take list of templates</a></li></ol>]]></description>
		<wfw:commentRss>http://adil.2scomplement.com/2009/02/django-generating-absolute-urls/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Twitter users in Pakistan:Tweet via SMS to a local number</title>
		<link>http://adil.2scomplement.com/2009/02/update-your-twitter-status-via-sms-to-a-local-number/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=update-your-twitter-status-via-sms-to-a-local-number</link>
		<comments>http://adil.2scomplement.com/2009/02/update-your-twitter-status-via-sms-to-a-local-number/#comments</comments>
		<pubDate>Sun, 08 Feb 2009 20:43:40 +0000</pubDate>
		<dc:creator>Adil Saleem</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web-Development]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[iSMS]]></category>
		<category><![CDATA[Pakistan]]></category>
		<category><![CDATA[SMS]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[updates]]></category>

		<guid isPermaLink="false">http://adil.2scomplement.com/?p=89</guid>
		<description><![CDATA[
Twitter is a well known name to almost every blogger. It provides a convenient and concise way to announce to the world what you are doing as well as get updates on what others are doing. Along with other modes, you can update your status by sending an SMS to Twitter. This way, you can broadcast [...]


No related posts.]]></description>
		<wfw:commentRss>http://adil.2scomplement.com/2009/02/update-your-twitter-status-via-sms-to-a-local-number/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>django: using threading to speed up send_mail</title>
		<link>http://adil.2scomplement.com/2008/11/django-send_mail-improved/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=django-send_mail-improved</link>
		<comments>http://adil.2scomplement.com/2008/11/django-send_mail-improved/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 14:51:02 +0000</pubDate>
		<dc:creator>Adil Saleem</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web-Development]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[non-blocking]]></category>
		<category><![CDATA[send_mail]]></category>
		<category><![CDATA[threading]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://adil.2scomplement.com/?p=76</guid>
		<description><![CDATA[django.core.mail.send_mail provides a very convenient abstraction to send an email to multiple recipients. But calling send_mail is a blocking call. This means that if you want to send an email in response to a user action, the server will not respond till the email is sent. This problem is magnified when you have to send [...]


Related posts:<ol><li><a href='http://adil.2scomplement.com/2009/12/django-hacking-django-views-generic-list_detail-object_list-to-take-list-of-templates/' rel='bookmark' title='Permanent Link: django: Hacking django object_list to take list of templates'>django: Hacking django object_list to take list of templates</a></li></ol>]]></description>
		<wfw:commentRss>http://adil.2scomplement.com/2008/11/django-send_mail-improved/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Five steps to reduce the response time of your web page</title>
		<link>http://adil.2scomplement.com/2008/11/how-to-reduce-the-size-of-your-web-page/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-reduce-the-size-of-your-web-page</link>
		<comments>http://adil.2scomplement.com/2008/11/how-to-reduce-the-size-of-your-web-page/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 12:03:50 +0000</pubDate>
		<dc:creator>Adil Saleem</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Web-Development]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[tweaks]]></category>

		<guid isPermaLink="false">http://adil.2scomplement.com/?p=72</guid>
		<description><![CDATA[Response time of a web site is a critical component of user experience. Here are some practical steps to reduce your response time.
It is recommended that you install Firebug and YSlow before you proceed. YSlow provides you with a wealth of statistics about your page (server requests, external file size, response time, images size etc.)
1- Place [...]


No related posts.]]></description>
		<wfw:commentRss>http://adil.2scomplement.com/2008/11/how-to-reduce-the-size-of-your-web-page/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>django: Resolving &#8220;The model &#8216;MyModel&#8217; is already registered&#8221; error</title>
		<link>http://adil.2scomplement.com/2008/09/django-the-model-mymodel-is-already-registered/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=django-the-model-mymodel-is-already-registered</link>
		<comments>http://adil.2scomplement.com/2008/09/django-the-model-mymodel-is-already-registered/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 03:13:02 +0000</pubDate>
		<dc:creator>Adil Saleem</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Web-Development]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[1.0]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://adil.2scomplement.com/?p=66</guid>
		<description><![CDATA[If you are migrating to django 1.0, youll have to update your models.py for django newforms-admin
Before

from django.db import models
class MyModel&#40;models.Model&#41;:
      &#34;&#34;&#34;
      field definitions
      &#34;&#34;&#34;
&#160;
      class Admin
          [...]


Related posts:<ol><li><a href='http://adil.2scomplement.com/2009/12/django-hacking-django-views-generic-list_detail-object_list-to-take-list-of-templates/' rel='bookmark' title='Permanent Link: django: Hacking django object_list to take list of templates'>django: Hacking django object_list to take list of templates</a></li></ol>]]></description>
		<wfw:commentRss>http://adil.2scomplement.com/2008/09/django-the-model-mymodel-is-already-registered/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
