title: Set all pages to require login, globally?
body: <p>I want to redirect access of unauthenticated users to the login page, after which the logged-in user should be redirected to the originally requested page.</p>
  
  <p>According to documentation, this is easily achieved using the <code>@user_passes_test</code> decorator. But it seems I'd have to decorate every view, which is crazy, there are too many and it's error-prone.</p>
  
  <p>What is a good way to turn on this functionality globally (except for a small fixed set of views, such as <code>login</code>)? That is, default everything to logged-in-only + handle anonymous viewing explicitly, where needed.</p>