<?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: Using The Permission System</title>
	<atom:link href="http://parand.com/say/index.php/2010/02/19/django-using-the-permission-system/feed/" rel="self" type="application/rss+xml" />
	<link>http://parand.com/say/index.php/2010/02/19/django-using-the-permission-system/</link>
	<description>Parand Tony Darugar: A Cruel and Petty Dictator</description>
	<lastBuildDate>Tue, 17 Jan 2012 23:10:42 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Crims0n</title>
		<link>http://parand.com/say/index.php/2010/02/19/django-using-the-permission-system/comment-page-1/#comment-350766</link>
		<dc:creator>Crims0n</dc:creator>
		<pubDate>Sun, 18 Dec 2011 14:38:55 +0000</pubDate>
		<guid isPermaLink="false">http://parand.com/say/?p=1002#comment-350766</guid>
		<description>Thanks a lot. it was very helpfull</description>
		<content:encoded><![CDATA[<p>Thanks a lot. it was very helpfull</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fahad Yousuf</title>
		<link>http://parand.com/say/index.php/2010/02/19/django-using-the-permission-system/comment-page-1/#comment-346854</link>
		<dc:creator>Fahad Yousuf</dc:creator>
		<pubDate>Sun, 04 Dec 2011 14:43:17 +0000</pubDate>
		<guid isPermaLink="false">http://parand.com/say/?p=1002#comment-346854</guid>
		<description>I can&#039;t thank you enough. This should be reposted in the official docs or the wiki or at least somewhere closer to the django website. Once again, awesome of you to take the time to write this.</description>
		<content:encoded><![CDATA[<p>I can&#8217;t thank you enough. This should be reposted in the official docs or the wiki or at least somewhere closer to the django website. Once again, awesome of you to take the time to write this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danilo</title>
		<link>http://parand.com/say/index.php/2010/02/19/django-using-the-permission-system/comment-page-1/#comment-333038</link>
		<dc:creator>Danilo</dc:creator>
		<pubDate>Tue, 06 Sep 2011 22:00:50 +0000</pubDate>
		<guid isPermaLink="false">http://parand.com/say/?p=1002#comment-333038</guid>
		<description>Parand, your approach with using the groups.py file is fantastic. Much better than my approach with using a fixture :) Thanks.

Jason, see http://bradmontgomery.blogspot.com/2009/04/restricting-access-by-group-in-django.html</description>
		<content:encoded><![CDATA[<p>Parand, your approach with using the groups.py file is fantastic. Much better than my approach with using a fixture <img src='http://parand.com/say/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Thanks.</p>
<p>Jason, see <a href="http://bradmontgomery.blogspot.com/2009/04/restricting-access-by-group-in-django.html" rel="nofollow">http://bradmontgomery.blogspot.com/2009/04/restricting-access-by-group-in-django.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rasadacrea</title>
		<link>http://parand.com/say/index.php/2010/02/19/django-using-the-permission-system/comment-page-1/#comment-332440</link>
		<dc:creator>rasadacrea</dc:creator>
		<pubDate>Wed, 31 Aug 2011 06:54:53 +0000</pubDate>
		<guid isPermaLink="false">http://parand.com/say/?p=1002#comment-332440</guid>
		<description>Interesting post on django permissions, very helpfull thank you</description>
		<content:encoded><![CDATA[<p>Interesting post on django permissions, very helpfull thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: milad</title>
		<link>http://parand.com/say/index.php/2010/02/19/django-using-the-permission-system/comment-page-1/#comment-327345</link>
		<dc:creator>milad</dc:creator>
		<pubDate>Tue, 12 Jul 2011 12:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://parand.com/say/?p=1002#comment-327345</guid>
		<description>Hi

how add view permission behind add, delete, edit permissions in django core. 
I want to add this permission for all of my models not only for one model. I know class Meta for it but I want using it for all models.

Thanks a lot...</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>how add view permission behind add, delete, edit permissions in django core.<br />
I want to add this permission for all of my models not only for one model. I know class Meta for it but I want using it for all models.</p>
<p>Thanks a lot&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Django: Checking If A User Is In A Group - Standard Deviations</title>
		<link>http://parand.com/say/index.php/2010/02/19/django-using-the-permission-system/comment-page-1/#comment-324667</link>
		<dc:creator>Django: Checking If A User Is In A Group - Standard Deviations</dc:creator>
		<pubDate>Thu, 16 Jun 2011 18:05:37 +0000</pubDate>
		<guid isPermaLink="false">http://parand.com/say/?p=1002#comment-324667</guid>
		<description>[...] Adding to my earlier post on the django permission system: [...]</description>
		<content:encoded><![CDATA[<p>[...] Adding to my earlier post on the django permission system: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edgar</title>
		<link>http://parand.com/say/index.php/2010/02/19/django-using-the-permission-system/comment-page-1/#comment-315986</link>
		<dc:creator>Edgar</dc:creator>
		<pubDate>Mon, 11 Apr 2011 05:41:11 +0000</pubDate>
		<guid isPermaLink="false">http://parand.com/say/?p=1002#comment-315986</guid>
		<description>thank you for guiding the methods of Group/Permission framework</description>
		<content:encoded><![CDATA[<p>thank you for guiding the methods of Group/Permission framework</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://parand.com/say/index.php/2010/02/19/django-using-the-permission-system/comment-page-1/#comment-303463</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Sat, 08 Jan 2011 05:03:46 +0000</pubDate>
		<guid isPermaLink="false">http://parand.com/say/?p=1002#comment-303463</guid>
		<description>So I have been researching permissions frameworks for some time now and it seems like most if not all of them are based around the idea of permissions being applied to models or specific object instances. 

What I am looking for is a way to restrict access to certain pages based on user/group. I have done it currently in a kludgy way by just assigning permissions to a random model in my system but it seems inelegant since the permission to view a specific page does not necessarily have to do with that model or any model in my system.

Maybe I don&#039;t understand the permissions system or how its supposed to be used to restrict access on a per page level. I guess I could also create a new model specifically for per-view permissions but that also seems awkward. 

Any advice would be great :)</description>
		<content:encoded><![CDATA[<p>So I have been researching permissions frameworks for some time now and it seems like most if not all of them are based around the idea of permissions being applied to models or specific object instances. </p>
<p>What I am looking for is a way to restrict access to certain pages based on user/group. I have done it currently in a kludgy way by just assigning permissions to a random model in my system but it seems inelegant since the permission to view a specific page does not necessarily have to do with that model or any model in my system.</p>
<p>Maybe I don&#8217;t understand the permissions system or how its supposed to be used to restrict access on a per page level. I guess I could also create a new model specifically for per-view permissions but that also seems awkward. </p>
<p>Any advice would be great <img src='http://parand.com/say/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Parand</title>
		<link>http://parand.com/say/index.php/2010/02/19/django-using-the-permission-system/comment-page-1/#comment-302923</link>
		<dc:creator>Parand</dc:creator>
		<pubDate>Mon, 03 Jan 2011 20:29:59 +0000</pubDate>
		<guid isPermaLink="false">http://parand.com/say/?p=1002#comment-302923</guid>
		<description>benjamin, my approach is to use get_or_create in a module name groups.py:

premium, _   = Group.objects.get_or_create(name=&#039;account_premium&#039;)

That way I can &quot;import groups&quot; and get access to &quot;groups.premium&quot;.

Not sure if that&#039;s the best way to do it, but it&#039;s worked for me.</description>
		<content:encoded><![CDATA[<p>benjamin, my approach is to use get_or_create in a module name groups.py:</p>
<p>premium, _   = Group.objects.get_or_create(name=&#8217;account_premium&#8217;)</p>
<p>That way I can &#8220;import groups&#8221; and get access to &#8220;groups.premium&#8221;.</p>
<p>Not sure if that&#8217;s the best way to do it, but it&#8217;s worked for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: benjamin</title>
		<link>http://parand.com/say/index.php/2010/02/19/django-using-the-permission-system/comment-page-1/#comment-302851</link>
		<dc:creator>benjamin</dc:creator>
		<pubDate>Mon, 03 Jan 2011 07:39:02 +0000</pubDate>
		<guid isPermaLink="false">http://parand.com/say/?p=1002#comment-302851</guid>
		<description>The question:
Could you please advise on where to create groups (models.py maybe)?

The website scenario:
I have several levels of groups with each its own special permissions, and I would like to make it persistent like the models. And when I will create new users (I use my own sign up view and template) I will add them to the right group.

Thanks.</description>
		<content:encoded><![CDATA[<p>The question:<br />
Could you please advise on where to create groups (models.py maybe)?</p>
<p>The website scenario:<br />
I have several levels of groups with each its own special permissions, and I would like to make it persistent like the models. And when I will create new users (I use my own sign up view and template) I will add them to the right group.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

