1 # -*- coding: utf-8 -*-
2 from django.conf.urls.defaults import *
3 from django.views.generic.simple import redirect_to
4 from django.contrib import admin
5 from django.conf import settings
9 urlpatterns = patterns('',
10 url(r'^$', redirect_to, {'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')),
21 url(r'^%s(?P<path>.+)$' % settings.MEDIA_URL[1:], 'django.views.static.serve',
22 {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),