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
To use decorators in urls.py you need use real functions instead of their names:
from django.contrib.auth.decorators import login_required
import django.views.generic.date_based as views
urlpatterns = patterns('',
(r'^$', login_required(views.archive_index), link_info_dict,
'coltrane_link_archive_index'),
...