wlem exam fixes
[edumed.git] / edumed / milurls.py
1 # -*- coding: utf-8 -*-
2 from django.conf.urls import include, url, patterns
3 from django.conf import settings
4
5 from fnpdjango.utils.urls import i18n_patterns
6 from .views import mil_home_view, mil_contact_view, mil_knowledge_base_view
7
8
9 urlpatterns = i18n_patterns(
10     '',
11     url(r'^$', mil_home_view, name="mil_home"),
12     url(r'^kompetencje/', include('curriculum.urls')),
13     url(r'^wez-udzial/', include('comment.urls')),
14     url(r'^zglos/', include('contact.urls')),
15     url(r'^kontakt/$', mil_contact_view, name='mil_contact'),
16     url(r'^bazawiedzy/(?P<url>.*)$', mil_knowledge_base_view,
17         name="knowledge_base"),
18 )
19
20 handler404 = 'edumed.views.mil_404_view'
21
22 if settings.DEBUG:
23     urlpatterns += patterns(
24         '',
25         url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
26             'document_root': settings.MEDIA_ROOT,
27         }),
28     )