<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: django-profiles: The Missing Manual</title>
	<atom:link href="http://birdhouse.org/blog/2009/06/27/django-profiles/feed/" rel="self" type="application/rss+xml" />
	<link>http://birdhouse.org/blog/2009/06/27/django-profiles/</link>
	<description>Like a chicken with a jewel in its beak.</description>
	<lastBuildDate>Fri, 19 Mar 2010 23:57:04 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: shacker</title>
		<link>http://birdhouse.org/blog/2009/06/27/django-profiles/comment-page-1/#comment-304780</link>
		<dc:creator>shacker</dc:creator>
		<pubDate>Mon, 11 Jan 2010 16:32:44 +0000</pubDate>
		<guid isPermaLink="false">http://birdhouse.org/blog/?p=3375#comment-304780</guid>
		<description>Ste - Yes, but that&#039;s a very different problem from the one this blog post is talking about. Basically you&#039;ll want to create multiple profile models, all with non-overlapping sets of attributes. What you&#039;ll lose is the ability to define an canonical profile model in your Django project. But you&#039;ll need to ask more specific questions if you have more - try the django-users mailing list.</description>
		<content:encoded><![CDATA[<p>Ste &#8211; Yes, but that&#8217;s a very different problem from the one this blog post is talking about. Basically you&#8217;ll want to create multiple profile models, all with non-overlapping sets of attributes. What you&#8217;ll lose is the ability to define an canonical profile model in your Django project. But you&#8217;ll need to ask more specific questions if you have more &#8211; try the django-users mailing list.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ste</title>
		<link>http://birdhouse.org/blog/2009/06/27/django-profiles/comment-page-1/#comment-304778</link>
		<dc:creator>ste</dc:creator>
		<pubDate>Mon, 11 Jan 2010 13:59:57 +0000</pubDate>
		<guid isPermaLink="false">http://birdhouse.org/blog/?p=3375#comment-304778</guid>
		<description>Hi, with this package is possible to manage different profiles for different kind of users? How ca I do?</description>
		<content:encoded><![CDATA[<p>Hi, with this package is possible to manage different profiles for different kind of users? How ca I do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shacker</title>
		<link>http://birdhouse.org/blog/2009/06/27/django-profiles/comment-page-1/#comment-304479</link>
		<dc:creator>shacker</dc:creator>
		<pubDate>Mon, 28 Sep 2009 05:57:07 +0000</pubDate>
		<guid isPermaLink="false">http://birdhouse.org/blog/?p=3375#comment-304479</guid>
		<description>Good catch Jeff. My sample was written correctly but the explanatory text was inside out. I&#039;ve just fixed that. Thanks.</description>
		<content:encoded><![CDATA[<p>Good catch Jeff. My sample was written correctly but the explanatory text was inside out. I&#8217;ve just fixed that. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://birdhouse.org/blog/2009/06/27/django-profiles/comment-page-1/#comment-304478</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Mon, 28 Sep 2009 03:41:43 +0000</pubDate>
		<guid isPermaLink="false">http://birdhouse.org/blog/?p=3375#comment-304478</guid>
		<description>Shacker,

The is this correct?

&lt;blockquote&gt;In urls.py, import your custom form and pass it through to the django-profiles view, right after the reference to the django-profiles urlconf (you want to do this after, not before, so the last matching URL for /profiles/edit/ is the one you define, not the one django-profiles defines:&lt;/blockquote&gt;

BTW - liked your article about Six Flags.  I just took my family to Sea World and experienced some of you pain, although I guess the east coast is a little more affordable - we only paid $10 to park :)</description>
		<content:encoded><![CDATA[<p>Shacker,</p>
<p>The is this correct?</p>
<blockquote>In urls.py, import your custom form and pass it through to the django-profiles view, right after the reference to the django-profiles urlconf (you want to do this after, not before, so the last matching URL for /profiles/edit/ is the one you define, not the one django-profiles defines:</blockquote>
<p>BTW &#8211; liked your article about Six Flags.  I just took my family to Sea World and experienced some of you pain, although I guess the east coast is a little more affordable &#8211; we only paid $10 to park :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shacker</title>
		<link>http://birdhouse.org/blog/2009/06/27/django-profiles/comment-page-1/#comment-304477</link>
		<dc:creator>shacker</dc:creator>
		<pubDate>Mon, 28 Sep 2009 03:21:34 +0000</pubDate>
		<guid isPermaLink="false">http://birdhouse.org/blog/?p=3375#comment-304477</guid>
		<description>Jeff - profiles/edit is defined in profiles.urls, so it&#039;s essentially being defined twice - once in the Profiles app itself and once by you.  When Django is processing URLs, it always grabs the FIRST match it finds in the list of all possible URLs. So since you want to override the view provided by the Profiles app you need to make sure Django intercepts your URL definition BEFORE the one provided by the Profiles app.</description>
		<content:encoded><![CDATA[<p>Jeff &#8211; profiles/edit is defined in profiles.urls, so it&#8217;s essentially being defined twice &#8211; once in the Profiles app itself and once by you.  When Django is processing URLs, it always grabs the FIRST match it finds in the list of all possible URLs. So since you want to override the view provided by the Profiles app you need to make sure Django intercepts your URL definition BEFORE the one provided by the Profiles app.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://birdhouse.org/blog/2009/06/27/django-profiles/comment-page-1/#comment-304474</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Mon, 28 Sep 2009 02:25:22 +0000</pubDate>
		<guid isPermaLink="false">http://birdhouse.org/blog/?p=3375#comment-304474</guid>
		<description>Can you explain the reason why this works 

    (&#039;^profiles/edit&#039;, &#039;profiles.views.edit_profile&#039;, {&#039;form_class&#039;: ProfileForm,}),
    (r&#039;^profiles/&#039;, include(&#039;profiles.urls&#039;)),

Why does listing the profiles/edit first actually get process last?

I tried it the other way and it defaults to the profiles app.  Why does listing it first have it processed last?

It works, I&#039;m just confused.

Jeff</description>
		<content:encoded><![CDATA[<p>Can you explain the reason why this works </p>
<p>    (&#8216;^profiles/edit&#8217;, &#8216;profiles.views.edit_profile&#8217;, {&#8216;form_class&#8217;: ProfileForm,}),<br />
    (r&#8217;^profiles/&#8217;, include(&#8216;profiles.urls&#8217;)),</p>
<p>Why does listing the profiles/edit first actually get process last?</p>
<p>I tried it the other way and it defaults to the profiles app.  Why does listing it first have it processed last?</p>
<p>It works, I&#8217;m just confused.</p>
<p>Jeff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reinhardt</title>
		<link>http://birdhouse.org/blog/2009/06/27/django-profiles/comment-page-1/#comment-304357</link>
		<dc:creator>Reinhardt</dc:creator>
		<pubDate>Wed, 22 Jul 2009 11:25:51 +0000</pubDate>
		<guid isPermaLink="false">http://birdhouse.org/blog/?p=3375#comment-304357</guid>
		<description>Colin - I installed django-profiles and it is not in my project directory, but in c:\python\lib\site-packages\profiles
Should I put the models.py in the directory mentioned above, or somewhere in my projects dir?</description>
		<content:encoded><![CDATA[<p>Colin &#8211; I installed django-profiles and it is not in my project directory, but in c:\python\lib\site-packages\profiles<br />
Should I put the models.py in the directory mentioned above, or somewhere in my projects dir?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shacker</title>
		<link>http://birdhouse.org/blog/2009/06/27/django-profiles/comment-page-1/#comment-304356</link>
		<dc:creator>shacker</dc:creator>
		<pubDate>Wed, 22 Jul 2009 05:11:22 +0000</pubDate>
		<guid isPermaLink="false">http://birdhouse.org/blog/?p=3375#comment-304356</guid>
		<description>Jonas - The point of the unicode method is to provide a default string by which that model is represented anywhere where you don&#039;t specify it otherwise. So if p is your profile and you just call p, you&#039;re now going to get just the first name on this page and anywhere else in your system where you refer to a profile (including in the admin). If you wanted the full name to appear instead you might use:

&lt;code&gt;return &quot;%s %s&quot; % (self.user.first_name, self.user.last_name)&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Jonas &#8211; The point of the unicode method is to provide a default string by which that model is represented anywhere where you don&#8217;t specify it otherwise. So if p is your profile and you just call p, you&#8217;re now going to get just the first name on this page and anywhere else in your system where you refer to a profile (including in the admin). If you wanted the full name to appear instead you might use:</p>
<p><code>return "%s %s" % (self.user.first_name, self.user.last_name)</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas Rullo</title>
		<link>http://birdhouse.org/blog/2009/06/27/django-profiles/comment-page-1/#comment-304355</link>
		<dc:creator>Jonas Rullo</dc:creator>
		<pubDate>Wed, 22 Jul 2009 01:21:58 +0000</pubDate>
		<guid isPermaLink="false">http://birdhouse.org/blog/?p=3375#comment-304355</guid>
		<description>OK, so I added:
def __unicode__(self):
        return self.user.first_name
to my UserProfile model and the first name automatically appears with {{ p }}. 
Is that just a semantic, or am I saving myself something?</description>
		<content:encoded><![CDATA[<p>OK, so I added:<br />
def __unicode__(self):<br />
        return self.user.first_name<br />
to my UserProfile model and the first name automatically appears with {{ p }}.<br />
Is that just a semantic, or am I saving myself something?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://birdhouse.org/blog/2009/06/27/django-profiles/comment-page-1/#comment-304354</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Wed, 22 Jul 2009 01:10:19 +0000</pubDate>
		<guid isPermaLink="false">http://birdhouse.org/blog/?p=3375#comment-304354</guid>
		<description>Reinhardt: If I may.

Django docs emphasize the importance of only using the appname.ModelName for the AUTH_PROFILE_MODULE.

As for whether to create a separate app, don&#039;t. You&#039;ll notice that django-profile does not include a model.py file. Create one and then add a model for your UserProfile with whatever you&#039;d like to add to the User model (url, address, phone number, etc...).

That becomes your AUTH_PROFILE_MODULE setting:

AUTH_PROFILE_MODULE=profiles.UserProfile

Works like a charm.</description>
		<content:encoded><![CDATA[<p>Reinhardt: If I may.</p>
<p>Django docs emphasize the importance of only using the appname.ModelName for the AUTH_PROFILE_MODULE.</p>
<p>As for whether to create a separate app, don&#8217;t. You&#8217;ll notice that django-profile does not include a model.py file. Create one and then add a model for your UserProfile with whatever you&#8217;d like to add to the User model (url, address, phone number, etc&#8230;).</p>
<p>That becomes your AUTH_PROFILE_MODULE setting:</p>
<p>AUTH_PROFILE_MODULE=profiles.UserProfile</p>
<p>Works like a charm.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reinhardt</title>
		<link>http://birdhouse.org/blog/2009/06/27/django-profiles/comment-page-1/#comment-304353</link>
		<dc:creator>Reinhardt</dc:creator>
		<pubDate>Wed, 22 Jul 2009 00:13:38 +0000</pubDate>
		<guid isPermaLink="false">http://birdhouse.org/blog/?p=3375#comment-304353</guid>
		<description>How to set AUTH_PROFILE_MODULE? Should I create a models.py in the root directory of the project, create a model class (eg. UserProfile) and then set the value of AUTH_PROFILE_MODULE to myproject.UserProfile, or to myproject.models.UserProfile?

Or should I create an app for only have the models.py in it (startapp UserProfileModel)??? But then I have two applications installed for one purpose.

What should I do best? That&#039;s very complicated!</description>
		<content:encoded><![CDATA[<p>How to set AUTH_PROFILE_MODULE? Should I create a models.py in the root directory of the project, create a model class (eg. UserProfile) and then set the value of AUTH_PROFILE_MODULE to myproject.UserProfile, or to myproject.models.UserProfile?</p>
<p>Or should I create an app for only have the models.py in it (startapp UserProfileModel)??? But then I have two applications installed for one purpose.</p>
<p>What should I do best? That&#8217;s very complicated!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shacker</title>
		<link>http://birdhouse.org/blog/2009/06/27/django-profiles/comment-page-1/#comment-304352</link>
		<dc:creator>shacker</dc:creator>
		<pubDate>Tue, 21 Jul 2009 16:03:22 +0000</pubDate>
		<guid isPermaLink="false">http://birdhouse.org/blog/?p=3375#comment-304352</guid>
		<description>&lt;blockquote&gt;I changed {{ p }} to {{ p.user }} to get my user name to appear on the list page.&lt;/blockquote&gt;

That sounds like you might not have an appropriate unicode method set on your profile model. {{p}} should render exactly as specified in that method.

Links to profile pages are defined in the urls.py belonging to django-profiles, so if you want to change them you can edit them there.</description>
		<content:encoded><![CDATA[<blockquote>I changed {{ p }} to {{ p.user }} to get my user name to appear on the list page.</blockquote>
<p>That sounds like you might not have an appropriate unicode method set on your profile model. {{p}} should render exactly as specified in that method.</p>
<p>Links to profile pages are defined in the urls.py belonging to django-profiles, so if you want to change them you can edit them there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonas Rullo</title>
		<link>http://birdhouse.org/blog/2009/06/27/django-profiles/comment-page-1/#comment-304349</link>
		<dc:creator>Jonas Rullo</dc:creator>
		<pubDate>Tue, 21 Jul 2009 01:02:07 +0000</pubDate>
		<guid isPermaLink="false">http://birdhouse.org/blog/?p=3375#comment-304349</guid>
		<description>Thanks so much, I used your post to get most of my info to show up. However on the list view, your example only gave me a link &quot;object list&quot;. I changed {{ p }} to {{ p.user }} to get my user name to appear on the list page. The link does click through to the detail page, but the url in the link is http://domain/full/server/path/to/project/profiles/p.user
Shouldn&#039;t the url path just be domain/detail/p.user
or something similar? The resulting detail page has a link with the correct profile, so it clicks through to the edit page. I&#039;m concerned about the url path generated on the profiles list page. It seems like that path should not even work. 

How would I get the normal path generated in the profiles list page?</description>
		<content:encoded><![CDATA[<p>Thanks so much, I used your post to get most of my info to show up. However on the list view, your example only gave me a link &#8220;object list&#8221;. I changed {{ p }} to {{ p.user }} to get my user name to appear on the list page. The link does click through to the detail page, but the url in the link is <a href="http://domain/full/server/path/to/project/profiles/p.user" rel="nofollow">http://domain/full/server/path/to/project/profiles/p.user</a><br />
Shouldn&#8217;t the url path just be domain/detail/p.user<br />
or something similar? The resulting detail page has a link with the correct profile, so it clicks through to the edit page. I&#8217;m concerned about the url path generated on the profiles list page. It seems like that path should not even work. </p>
<p>How would I get the normal path generated in the profiles list page?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shacker</title>
		<link>http://birdhouse.org/blog/2009/06/27/django-profiles/comment-page-1/#comment-304347</link>
		<dc:creator>shacker</dc:creator>
		<pubDate>Sun, 19 Jul 2009 16:18:45 +0000</pubDate>
		<guid isPermaLink="false">http://birdhouse.org/blog/?p=3375#comment-304347</guid>
		<description>Love to hear examples of Django being used in journalism - especially by non-hardcore programmers. Let us know when you&#039;ve got something up for the world to see - would love to take a look.</description>
		<content:encoded><![CDATA[<p>Love to hear examples of Django being used in journalism &#8211; especially by non-hardcore programmers. Let us know when you&#8217;ve got something up for the world to see &#8211; would love to take a look.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://birdhouse.org/blog/2009/06/27/django-profiles/comment-page-1/#comment-304344</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Sun, 19 Jul 2009 05:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://birdhouse.org/blog/?p=3375#comment-304344</guid>
		<description>One last thing. Interesting to see on your twitter profile that you work at the Berkley J-school. I&#039;m a reporter for a small weekly out here in Maine and am using django to help morph my job description into a reporter/web developer for the company... Amazing stuff going on in the internet/journalism world these days, good luck!</description>
		<content:encoded><![CDATA[<p>One last thing. Interesting to see on your twitter profile that you work at the Berkley J-school. I&#8217;m a reporter for a small weekly out here in Maine and am using django to help morph my job description into a reporter/web developer for the company&#8230; Amazing stuff going on in the internet/journalism world these days, good luck!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
