1 from django.conf.urls import patterns, include, url
2 from django.conf import settings
3 from django.views.generic import TemplateView
6 urlpatterns = patterns('',
8 # url(r'^$', 'edumed.views.home', name='home'),
9 url(r'^$', TemplateView.as_view(template_name="home.html"), name="home"),
10 url(r'^kompetencje/', include('curriculum.urls')),
11 url(r'^lekcje/', include('catalogue.urls')),
12 # url(r'^i/', include('django.contrib.flatpages.urls')),
13 url(r'^info/(?P<url>.*)$', 'django.contrib.flatpages.views.flatpage',
15 url(r'^szukaj/', include('haystack.urls')),
19 # Admin stuff, if necessary.
20 if 'django.contrib.admin' in settings.INSTALLED_APPS:
21 from django.contrib import admin
24 urlpatterns += patterns('',
25 url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
26 url(r'^admin/', include(admin.site.urls)),
29 # Auth stuff, if necessary
30 if 'django_cas' in settings.INSTALLED_APPS:
31 urlpatterns += patterns('',
32 (r'^accounts/login/$', 'django_cas.views.login'),
33 (r'^accounts/logout/$', 'django_cas.views.logout'),
38 urlpatterns += patterns('',
39 url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
40 'document_root': settings.MEDIA_ROOT,