4a285fdeda4cacf9085fa7369a06f3946d8d220c
[cas.git] / src / cas / urls.py
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
6
7 admin.autodiscover()
8
9 urlpatterns = patterns('',
10     url(r'^$', redirect_to, {'url': '/accounts/'}),
11
12     # django-cas-provider
13     url(r'^cas/', include('cas_provider.urls')),
14
15     # Admin panel
16     url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
17     url(r'^admin/', include(admin.site.urls)),
18
19     url(r'^accounts/', include('accounts.urls')),
20
21     url(r'^%s(?P<path>.+)$' % settings.MEDIA_URL[1:], 'django.views.static.serve',
22         {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
23 )
24
25