from django.conf import settings
-from django.conf.urls.defaults import patterns, include, url
+from django.conf.urls import patterns, include, url
+from django.views.generic import RedirectView
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
- url(r'^$', 'django.views.generic.simple.redirect_to', {'url': 'archive/'}),
+ url(r'^$', RedirectView.as_view(url='archive/')),
url(r'^archive/', include('archive.urls')),
url(r'^admin/', include(admin.site.urls)),
- url(r'^accounts/login/', 'django.contrib.auth.views.login'),
- url(r'^accounts/logout/', 'archive.views.logout_view', name='logout'),
+ url(r'^accounts/login/$', 'django_cas.views.login', name='login'),
+ url(r'^accounts/logout/$', 'django_cas.views.logout', name='logout'),
)
if settings.DEBUG: