aec028910a2c33bf667a179d668e610a92fff754
[fnp-django-template.git] / project_name / urls.py
1 from django.conf.urls import patterns, include, url
2
3 from django.contrib import admin
4 admin.autodiscover()
5
6 urlpatterns = patterns('',
7     url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
8     url(r'^admin/', include(admin.site.urls)),
9 )
10
11 if 'django_cas' in settings.INSTALLED_APPS:
12     urlpatterns += patterns('',
13         (r'^accounts/login/$', 'django_cas.views.login'),
14         (r'^accounts/logout/$', 'django_cas.views.logout'),
15     )
16
17 urlpatterns += patterns('',
18     # Examples:
19     # url(r'^$', '{{ project_name }}.views.home', name='home'),
20     # url(r'^{{ project_name }}/', include('{{ project_name }}.foo.urls')),
21 )