<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for Fragments of Code</title>
	<atom:link href="http://fragmentsofcode.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://fragmentsofcode.wordpress.com</link>
	<description>Some assembly required</description>
	<lastBuildDate>Sun, 20 Dec 2009 00:07:50 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Python script for Apache RewriteMap by Cogsy</title>
		<link>http://fragmentsofcode.wordpress.com/2009/02/04/python-script-for-apache-rewritemap/#comment-82</link>
		<dc:creator>Cogsy</dc:creator>
		<pubDate>Sun, 20 Dec 2009 00:07:50 +0000</pubDate>
		<guid isPermaLink="false">http://fragmentsofcode.wordpress.com/?p=258#comment-82</guid>
		<description>Thanks man.  Just the hint I needed to get the apache IO working.</description>
		<content:encoded><![CDATA[<p>Thanks man.  Just the hint I needed to get the apache IO working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Django: Why I made a template tag for MEDIA_URL by Mitch</title>
		<link>http://fragmentsofcode.wordpress.com/2009/01/14/django-why-i-made-a-template-tag-for-media_url/#comment-81</link>
		<dc:creator>Mitch</dc:creator>
		<pubDate>Wed, 09 Dec 2009 18:28:13 +0000</pubDate>
		<guid isPermaLink="false">http://fragmentsofcode.wordpress.com/?p=211#comment-81</guid>
		<description>Thank you!  Not sure if its me or what, but somehow, I&#039;ve been trying to get the MEDIA_URL to work in a template for a couple days... for whatever reason... I never saw anyone else mention you had to use the RequestContext instead of the render_to_response.</description>
		<content:encoded><![CDATA[<p>Thank you!  Not sure if its me or what, but somehow, I&#8217;ve been trying to get the MEDIA_URL to work in a template for a couple days&#8230; for whatever reason&#8230; I never saw anyone else mention you had to use the RequestContext instead of the render_to_response.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Django group_required decorator by David Chandek-Stark</title>
		<link>http://fragmentsofcode.wordpress.com/2008/12/08/django-group_required-decorator/#comment-80</link>
		<dc:creator>David Chandek-Stark</dc:creator>
		<pubDate>Mon, 12 Oct 2009 14:50:55 +0000</pubDate>
		<guid isPermaLink="false">http://fragmentsofcode.wordpress.com/?p=55#comment-80</guid>
		<description>Technically, that&#039;s not necessary because u.groups.all() is an empty list if u is an AnonymousUser -- the only case under which u.is_authenticated() returns False.  I agree, however, that allowing superusers to pass the test (as you have also added) is probably expected behavior in this case.</description>
		<content:encoded><![CDATA[<p>Technically, that&#8217;s not necessary because u.groups.all() is an empty list if u is an AnonymousUser &#8212; the only case under which u.is_authenticated() returns False.  I agree, however, that allowing superusers to pass the test (as you have also added) is probably expected behavior in this case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Django gotcha: related objects deleted by default by David Chandek-Stark</title>
		<link>http://fragmentsofcode.wordpress.com/2009/03/06/django-gotcha-related-objects-deleted-by-default/#comment-79</link>
		<dc:creator>David Chandek-Stark</dc:creator>
		<pubDate>Fri, 09 Oct 2009 02:58:03 +0000</pubDate>
		<guid isPermaLink="false">http://fragmentsofcode.wordpress.com/?p=296#comment-79</guid>
		<description>@Margie - Thanks for pointing that out.  At the time I wrote the post (prior to Django 1.1), bulk delete was not available in the admin UI change list pages, and evidently I have not used the API to delete objects in bulk, so I wasn&#039;t aware of this issue.  On a positive note, features under consideration for Django 1.2 (http://code.djangoproject.com/wiki/Version1.2Features#ORM) include the ticket I referenced (http://code.djangoproject.com/ticket/7539), which calls for adding ON DELETE and ON UPDATE support.  Hopefully, the developers will take care to apply this fix to both model and queryset delete() methods.</description>
		<content:encoded><![CDATA[<p>@Margie &#8211; Thanks for pointing that out.  At the time I wrote the post (prior to Django 1.1), bulk delete was not available in the admin UI change list pages, and evidently I have not used the API to delete objects in bulk, so I wasn&#8217;t aware of this issue.  On a positive note, features under consideration for Django 1.2 (<a href="http://code.djangoproject.com/wiki/Version1.2Features#ORM" rel="nofollow">http://code.djangoproject.com/wiki/Version1.2Features#ORM</a>) include the ticket I referenced (<a href="http://code.djangoproject.com/ticket/7539" rel="nofollow">http://code.djangoproject.com/ticket/7539</a>), which calls for adding ON DELETE and ON UPDATE support.  Hopefully, the developers will take care to apply this fix to both model and queryset delete() methods.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Django gotcha: related objects deleted by default by Margie</title>
		<link>http://fragmentsofcode.wordpress.com/2009/03/06/django-gotcha-related-objects-deleted-by-default/#comment-78</link>
		<dc:creator>Margie</dc:creator>
		<pubDate>Thu, 08 Oct 2009 20:57:12 +0000</pubDate>
		<guid isPermaLink="false">http://fragmentsofcode.wordpress.com/?p=296#comment-78</guid>
		<description>Unfortunately, this does not completely solve the problem.  When the django &quot;bulk delete&quot; is used, the delete() method does not get called at all.  Bulk delete is called, for example, when you delete a queryset, ie  qset = Person.objects.all(username=&quot;foo&quot;).delete()

As it turns out, this &quot;may or may not&quot; be executed via a bulk delete.  If it is execute through a bulk delete, your delete() method above will not get called and all of the deleted person&#039;s related objects will get deleted.  

Here is a thread in the django google group that discusses this.  I&#039;m really surprised that there is no way around this problem.</description>
		<content:encoded><![CDATA[<p>Unfortunately, this does not completely solve the problem.  When the django &#8220;bulk delete&#8221; is used, the delete() method does not get called at all.  Bulk delete is called, for example, when you delete a queryset, ie  qset = Person.objects.all(username=&#8221;foo&#8221;).delete()</p>
<p>As it turns out, this &#8220;may or may not&#8221; be executed via a bulk delete.  If it is execute through a bulk delete, your delete() method above will not get called and all of the deleted person&#8217;s related objects will get deleted.  </p>
<p>Here is a thread in the django google group that discusses this.  I&#8217;m really surprised that there is no way around this problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Generic context processor for Django settings by Mark Stahler</title>
		<link>http://fragmentsofcode.wordpress.com/2009/09/15/a-generic-context-processor-for-django-settings/#comment-77</link>
		<dc:creator>Mark Stahler</dc:creator>
		<pubDate>Tue, 06 Oct 2009 01:25:09 +0000</pubDate>
		<guid isPermaLink="false">http://fragmentsofcode.wordpress.com/?p=361#comment-77</guid>
		<description>Great idea but for those of us new to Django it would be nice to have a little more detail.</description>
		<content:encoded><![CDATA[<p>Great idea but for those of us new to Django it would be nice to have a little more detail.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Tweaking Django auth admin by bjubb</title>
		<link>http://fragmentsofcode.wordpress.com/2009/05/26/tweaking-django-auth-admin/#comment-76</link>
		<dc:creator>bjubb</dc:creator>
		<pubDate>Mon, 05 Oct 2009 14:46:42 +0000</pubDate>
		<guid isPermaLink="false">http://fragmentsofcode.wordpress.com/?p=333#comment-76</guid>
		<description>Sorry - here&#039;s the real line of code:
UserAdmin.list_display = (&#039;username&#039;, &#039;email&#039;, &#039;first_name&#039;, &#039;last_name&#039;, &#039;is_staff&#039;, &#039;last_login&#039;)

Trying to add the last login to the page....it works if i just edit the actual django admin file ,  but obviously i liked your method better.</description>
		<content:encoded><![CDATA[<p>Sorry &#8211; here&#8217;s the real line of code:<br />
UserAdmin.list_display = (&#8216;username&#8217;, &#8216;email&#8217;, &#8216;first_name&#8217;, &#8216;last_name&#8217;, &#8216;is_staff&#8217;, &#8216;last_login&#8217;)</p>
<p>Trying to add the last login to the page&#8230;.it works if i just edit the actual django admin file ,  but obviously i liked your method better.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Tweaking Django auth admin by bjubb</title>
		<link>http://fragmentsofcode.wordpress.com/2009/05/26/tweaking-django-auth-admin/#comment-75</link>
		<dc:creator>bjubb</dc:creator>
		<pubDate>Mon, 05 Oct 2009 14:44:14 +0000</pubDate>
		<guid isPermaLink="false">http://fragmentsofcode.wordpress.com/?p=333#comment-75</guid>
		<description>i dont use autodiscover and use this instead in attempt to change which items are shown on the Auth-&gt;Users page:

from django.contrib.auth.admin import UserAdmin

UserAdmin.list_display(...)

 The User/Group classes register fine,  its just that my changes to the list_display dont work.</description>
		<content:encoded><![CDATA[<p>i dont use autodiscover and use this instead in attempt to change which items are shown on the Auth-&gt;Users page:</p>
<p>from django.contrib.auth.admin import UserAdmin</p>
<p>UserAdmin.list_display(&#8230;)</p>
<p> The User/Group classes register fine,  its just that my changes to the list_display dont work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Tweaking Django auth admin by David Chandek-Stark</title>
		<link>http://fragmentsofcode.wordpress.com/2009/05/26/tweaking-django-auth-admin/#comment-74</link>
		<dc:creator>David Chandek-Stark</dc:creator>
		<pubDate>Sat, 03 Oct 2009 01:26:46 +0000</pubDate>
		<guid isPermaLink="false">http://fragmentsofcode.wordpress.com/?p=333#comment-74</guid>
		<description>I don&#039;t use autodiscover because I want more control over what gets added to the admin UI, so I&#039;m not sure how this recipe plays in that scenario.  You might simply be able to add the lines I&#039;ve given before or after the autodiscover call (or import the module that contains them, which is what I do).  As I said, importing the UserAdmin class from django.contrib.auth.admin effectively registers the admin classes from that module.  Does autodiscover blow up if it encounters admin classes that are already registered?</description>
		<content:encoded><![CDATA[<p>I don&#8217;t use autodiscover because I want more control over what gets added to the admin UI, so I&#8217;m not sure how this recipe plays in that scenario.  You might simply be able to add the lines I&#8217;ve given before or after the autodiscover call (or import the module that contains them, which is what I do).  As I said, importing the UserAdmin class from django.contrib.auth.admin effectively registers the admin classes from that module.  Does autodiscover blow up if it encounters admin classes that are already registered?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Tweaking Django auth admin by bjubb</title>
		<link>http://fragmentsofcode.wordpress.com/2009/05/26/tweaking-django-auth-admin/#comment-73</link>
		<dc:creator>bjubb</dc:creator>
		<pubDate>Fri, 02 Oct 2009 14:49:02 +0000</pubDate>
		<guid isPermaLink="false">http://fragmentsofcode.wordpress.com/?p=333#comment-73</guid>
		<description>Exactly how did you import your admin instead of the django.contrib.auth,  yet also allow the autodiscover routine to run?  Thanks - this tip should help me out nicely if I can get the import to work.</description>
		<content:encoded><![CDATA[<p>Exactly how did you import your admin instead of the django.contrib.auth,  yet also allow the autodiscover routine to run?  Thanks &#8211; this tip should help me out nicely if I can get the import to work.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
