gwu-libraries/DigOp — Issue #4: use standard django login panel
Author: dchud
Created: 2012-01-31 23:19:48+00:00
State: open

Currently views.py mixes the login function with what could instead be something on an "index" view. If you stick to using the default django login panel, you can keep the login functionality simple, and redirect users to an index or other views that show them different things depending on their privilege levels.

See also the @login_required decorator, which can be very helpful in restricting views and bouncing non-authenticated users over to the login panel and back.