Sunday, 25 August 2013

django different user authentication

django different user authentication

I have a question concerning different user authentication in Django.
Suppose I have two kind of users, and I want to give them different access
to different pages or views. I know that there is @login_required to
differentiate login user and visitor. I am just wondering how to
differentiate two different kind of logged in users. If using
@login_required, I need to do another check to see whether that user is
belonged to either group, which may not be the good way to solve the
problem.
Any suggestions? Thanks a million!

No comments:

Post a Comment