3303eb456e9953c35a2f8e96bc07672fcb4d34b4
[fnp-django-template.git] / src / src / project_name / urls.py
1 from django.conf.urls import patterns, include, url
2 from django.conf import settings
3 from django.contrib import admin
4
5 urlpatterns = patterns('',
6     # Examples:
7     # url(r'^$', '{{ project_name }}.views.home', name='home'),
8     # url(r'^{{ project_name }}/', include('foo.urls')),
9
10
11     # Admin stuff.
12     url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
13     url(r'^admin/', include(admin.site.urls)),
14
15     # CAS stuff.
16     url(r'^accounts/login/$', 'django_cas_ng.views.login'),
17     url(r'^accounts/logout/$', 'django_cas_ng.views.logout'),
18 )
19
20 # Media in DEBUG mode
21 if settings.DEBUG:
22     urlpatterns += patterns('',
23         url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
24             'document_root': settings.MEDIA_ROOT,
25         }),
26    )
27