<?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; models</title>
	<atom:link href="http://adil.2scomplement.com/tag/models/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: 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: 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>django: Change username max_length</title>
		<link>http://adil.2scomplement.com/2008/06/change-username-max_length/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=change-username-max_length</link>
		<comments>http://adil.2scomplement.com/2008/06/change-username-max_length/#comments</comments>
		<pubDate>Sat, 28 Jun 2008 16:09:52 +0000</pubDate>
		<dc:creator>Adil Saleem</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[db]]></category>
		<category><![CDATA[max_length]]></category>
		<category><![CDATA[models]]></category>
		<category><![CDATA[User]]></category>

		<guid isPermaLink="false">http://adil.2scomplement.com/?p=51</guid>
		<description><![CDATA[django maintains username and email separately. This is convenient but if you want to use the email as the username, the default authentication system has to be modified. Fortunately this is very simple in django. You need to write an &#8216;Authentication Backend&#8217;. The details of how to do this are very nicely covered here.
http://www.djangosnippets.org/snippets/74/
This introduces [...]


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/06/change-username-max_length/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
