<?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; Tips &amp; Tricks</title>
	<atom:link href="http://adil.2scomplement.com/category/tips-tricks/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: 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>django: playing with upload_to field</title>
		<link>http://adil.2scomplement.com/2009/01/django-playing-with-upload_to-field/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=django-playing-with-upload_to-field</link>
		<comments>http://adil.2scomplement.com/2009/01/django-playing-with-upload_to-field/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 15:35:34 +0000</pubDate>
		<dc:creator>Adil Saleem</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[dynamic path]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[models]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://adil.2scomplement.com/?p=88</guid>
		<description><![CDATA[Django provides models.FileField &#38; models.ImageField to save uploaded files &#38; images respectively. Both these fields take a parameters &#8216;upload_to&#8217; which defines the path where the uploaded file will be saved (complete path is settings.MEDIA_ROOT + upload_to). You can play some neat tricks with this little feature.
Creating the date based folders at run time
You can use the [...]


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/01/django-playing-with-upload_to-field/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to write effectively?</title>
		<link>http://adil.2scomplement.com/2008/11/how-to-write-effectively/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-write-effectively</link>
		<comments>http://adil.2scomplement.com/2008/11/how-to-write-effectively/#comments</comments>
		<pubDate>Thu, 27 Nov 2008 15:44:22 +0000</pubDate>
		<dc:creator>Adil Saleem</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[guidelines]]></category>
		<category><![CDATA[suggestions]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[writing]]></category>

		<guid isPermaLink="false">http://adil.2scomplement.com/?p=78</guid>
		<description><![CDATA[Writing is not just a mode of communication, it is a medium to refine, share grow ideas. It forces you to organize your thoughts in a meaningful way. When you write your thoughts, you can clearly see if you make sense or not. People fail to grasp that writing is a skill and requires conscious [...]


No related posts.]]></description>
		<wfw:commentRss>http://adil.2scomplement.com/2008/11/how-to-write-effectively/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 Recommended Firefox extensions</title>
		<link>http://adil.2scomplement.com/2008/11/10-recommended-firefox-extensions/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=10-recommended-firefox-extensions</link>
		<comments>http://adil.2scomplement.com/2008/11/10-recommended-firefox-extensions/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 00:00:00 +0000</pubDate>
		<dc:creator>Adil Saleem</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[general]]></category>
		<category><![CDATA[recommended add-ons]]></category>

		<guid isPermaLink="false">http://adil.2scomplement.com/?p=11</guid>
		<description><![CDATA[I used Firefox in 2005 for the first time and immediately fell in love with it. Downloading Firefox is probably the only thing for which I use Internet Explorer now.
A great thing about Firefox is the available plugins. Over the past 4 years, I have installed &#38; uninstalled many add-ons. Following are the 10 add-ons [...]


No related posts.]]></description>
		<wfw:commentRss>http://adil.2scomplement.com/2008/11/10-recommended-firefox-extensions/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>
