Monday, May 10, 2010

How to define different user types?

Hi all, I'm a Python n00b but find Django very useful for me. However,
there is a problem in my recent project which needs several user
roles. For example, the 'user' role can browse some information and
submit some register forms, the 'admin' role can view and verify these
forms and/or modify them, the 'manager' role can add or delete 'admin'
users. All users need to login in order to specify their roles. I've
read some documentations about django.contrib.auth and django-
authorization all day but still confused... Is there any way to
implement this? Or, can django.contrib.auth do this? I really want to
use decorations in views.py to authenticate different types of users
or verify different permissions of users if it is possible.
I'm sorry to post this low-level thread but I've really read the
documentation first. Maybe there aren't many examples, or maybe I feel
a little bit hard to understand English :-[
Thank you!

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate