Hi,

I have a system with 3 levels of permissions in an app at work, and it
has been relatively easy to do.

You have three things that will help you:
- The ability of creating "groups" with different permissions.
- The @login_required and @permission_required, that will allow you a
per-view restriction.
- The authentications in the templates.

With those three you will be able to do a variety of nice things.

To be honest, the main pain for me was to wrap the generic views with
the different permission_required decorators needed in my app.

My approach for this is usually to program the app open for everyone,
and then to close what is needed depending of the different levels I
want to implement.

Hope it helps,

G

On 11/1/06, carlwenrich <[EMAIL PROTECTED]> wrote:
>
> I know that you set up the admin interface with password-controlled
> access, but what I'm asking is whether you can set it up (easily) to
> allow public access to public info, password-contolled access to logged
> in users, and admin access to administrators, in other words, at least
> 3 levels.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to