1 from django.conf.urls import patterns, include, url
2 from django.conf import settings
4 urlpatterns = patterns('',
6 # url(r'^$', '{{ project_name }}.views.home', name='home'),
7 # url(r'^{{ project_name }}/', include('foo.urls')),
11 # Admin stuff, if necessary.
12 if 'django.contrib.admin' in settings.INSTALLED_APPS:
13 from django.contrib import admin
16 urlpatterns += patterns('',
17 url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
18 url(r'^admin/', include(admin.site.urls)),
21 # Auth stuff, if necessary
22 if 'django_cas' in settings.INSTALLED_APPS:
23 urlpatterns += patterns('',
24 (r'^accounts/login/$', 'django_cas.views.login'),
25 (r'^accounts/logout/$', 'django_cas.views.logout'),