gwu-libraries/DigOp — Issue #10: use @login_required decorator
Author: dchud
Created: 2012-02-21 16:22:44+00:00
State: open

This is a convenience and a convention that can keep your code clean - in views.indexPage, you check:

```
if request.user.is_authenticated()
```

...but you can remove calls like this using the @login_required decorator, as described here:

https://docs.djangoproject.com/en/dev/topics/auth/

A quick, easy change the leaves your code reading neater.