- url(r'^accounts/login/$', 'django_cas.views.login'),
- url(r'^accounts/logout/$', 'django_cas.views.logout'),
+ url(r'^accounts/login/$', 'django_cas.views.login', name = 'login'),
+ url(r'^accounts/logout/$', 'django_cas.views.logout', name = 'logout'),