Bubbles should preserver width when dragged.
[edumed.git] / edumed / urls.py
1 from django.conf.urls import patterns, include, url
2 from django.conf import settings
3 from django.views.generic import TemplateView
4
5
6 urlpatterns = patterns('',
7     # Examples:
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'^i/(?P<url>.*)$', 'django.contrib.flatpages.views.flatpage',
14         name="info"),
15 )
16
17
18 # Admin stuff, if necessary.
19 if 'django.contrib.admin' in settings.INSTALLED_APPS:
20     from django.contrib import admin
21     admin.autodiscover()
22
23     urlpatterns += patterns('',
24         url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
25         url(r'^admin/', include(admin.site.urls)),
26     )
27
28 # Auth stuff, if necessary
29 if 'django_cas' in settings.INSTALLED_APPS:
30     urlpatterns += patterns('',
31         (r'^accounts/login/$', 'django_cas.views.login'),
32         (r'^accounts/logout/$', 'django_cas.views.logout'),
33     )
34
35
36 if settings.DEBUG:
37     urlpatterns += patterns('',
38         url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
39             'document_root': settings.MEDIA_ROOT,
40         }),
41    )