1 # -*- coding: utf-8 -*-
2 from django.conf.urls import include, patterns, url
3 from django.views.generic import RedirectView
4 from django.contrib import admin
5 from django.conf import settings
9 urlpatterns = patterns('',
10 url(r'^$', RedirectView.as_view(url='/accounts/')),
13 url(r'^cas/', include('cas_provider.urls')),
16 url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
17 url(r'^admin/', include(admin.site.urls)),
19 url(r'^accounts/', include('accounts.urls')),
24 urlpatterns += patterns('',
25 url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
26 'document_root': settings.MEDIA_ROOT,