I want to check that the user is authorized for certain URLs. I\'m using generic views.
The docs here say the login_required can be passed as an optional arguments but I
Those docs are for generic views, which work slightly differently than custom views. Normally login_required is used to decorate a view; if you want to use it within a urlconf then you'll need to write a lambda to wrap the view.
login_required