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