<?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: Get User from session key in Django</title>
	<atom:link href="http://scottbarnham.com/blog/2008/12/04/get-user-from-session-key-in-django/feed/" rel="self" type="application/rss+xml" />
	<link>http://scottbarnham.com/blog/2008/12/04/get-user-from-session-key-in-django/</link>
	<description>Code and comments on web development, Django, Python and things (un)related.</description>
	<lastBuildDate>Tue, 13 Jul 2010 16:31:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jeremy Dunck</title>
		<link>http://scottbarnham.com/blog/2008/12/04/get-user-from-session-key-in-django/comment-page-1/#comment-611</link>
		<dc:creator>Jeremy Dunck</dc:creator>
		<pubDate>Mon, 05 Jan 2009 14:17:06 +0000</pubDate>
		<guid isPermaLink="false">http://scottbarnham.com/blog/2008/12/04/get-user-from-session-key-in-django/#comment-611</guid>
		<description>You shouldn&#039;t assume that DB-backed sessions are used, or that the auth session item is &quot;_auth_user_id&quot;.

I&#039;ve posted a snippet to show a backend-agnostic way to do this:
http://www.djangosnippets.org/snippets/1276/</description>
		<content:encoded><![CDATA[<p>You shouldn&#8217;t assume that DB-backed sessions are used, or that the auth session item is &#8220;_auth_user_id&#8221;.</p>
<p>I&#8217;ve posted a snippet to show a backend-agnostic way to do this:<br />
<a href="http://www.djangosnippets.org/snippets/1276/" rel="nofollow">http://www.djangosnippets.org/snippets/1276/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jj</title>
		<link>http://scottbarnham.com/blog/2008/12/04/get-user-from-session-key-in-django/comment-page-1/#comment-595</link>
		<dc:creator>Jj</dc:creator>
		<pubDate>Fri, 05 Dec 2008 19:42:23 +0000</pubDate>
		<guid isPermaLink="false">http://scottbarnham.com/blog/2008/12/04/get-user-from-session-key-in-django/#comment-595</guid>
		<description>Great information, it should be part of the error page and also be included in the error messages send to ADMINS on production sites.</description>
		<content:encoded><![CDATA[<p>Great information, it should be part of the error page and also be included in the error messages send to ADMINS on production sites.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: omtv</title>
		<link>http://scottbarnham.com/blog/2008/12/04/get-user-from-session-key-in-django/comment-page-1/#comment-594</link>
		<dc:creator>omtv</dc:creator>
		<pubDate>Fri, 05 Dec 2008 01:57:39 +0000</pubDate>
		<guid isPermaLink="false">http://scottbarnham.com/blog/2008/12/04/get-user-from-session-key-in-django/#comment-594</guid>
		<description>This is quite a useful script!
I was just trying to do sth like this with swfupload. Thanks.</description>
		<content:encoded><![CDATA[<p>This is quite a useful script!<br />
I was just trying to do sth like this with swfupload. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Napoleone</title>
		<link>http://scottbarnham.com/blog/2008/12/04/get-user-from-session-key-in-django/comment-page-1/#comment-592</link>
		<dc:creator>Doug Napoleone</dc:creator>
		<pubDate>Thu, 04 Dec 2008 22:53:58 +0000</pubDate>
		<guid isPermaLink="false">http://scottbarnham.com/blog/2008/12/04/get-user-from-session-key-in-django/#comment-592</guid>
		<description>The django-command-extensions project has this as a management command &#039;print_user_for_session&#039;:

http://code.google.com/p/django-command-extensions/</description>
		<content:encoded><![CDATA[<p>The django-command-extensions project has this as a management command &#8216;print_user_for_session&#8217;:</p>
<p><a href="http://code.google.com/p/django-command-extensions/" rel="nofollow">http://code.google.com/p/django-command-extensions/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viktor</title>
		<link>http://scottbarnham.com/blog/2008/12/04/get-user-from-session-key-in-django/comment-page-1/#comment-591</link>
		<dc:creator>Viktor</dc:creator>
		<pubDate>Thu, 04 Dec 2008 22:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://scottbarnham.com/blog/2008/12/04/get-user-from-session-key-in-django/#comment-591</guid>
		<description>Nice idea indeed, but actually it would be even better to have it called automatically when django shows the error page to the user. Not surprisingly this is easy to achieve by overwriting the default 500 error handler view in your urlconf.

The default says: 

    ``handler500 = &#039;django.views.defaults.server_error&#039;`` in ``django.conf.urls.defaults`` 

that you have imported anyway, so just write your own and be careful not to enter an endless 500 error loop. :)</description>
		<content:encoded><![CDATA[<p>Nice idea indeed, but actually it would be even better to have it called automatically when django shows the error page to the user. Not surprisingly this is easy to achieve by overwriting the default 500 error handler view in your urlconf.</p>
<p>The default says: </p>
<p>    &#8220;handler500 = &#8216;django.views.defaults.server_error&#8217;&#8220; in &#8220;django.conf.urls.defaults&#8220; </p>
<p>that you have imported anyway, so just write your own and be careful not to enter an endless 500 error loop. :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.195 seconds -->
