Translating instructions on the MIL site
[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
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 )
14
15 handler404 = 'edumed.views.mil_404_view'
16
17 from django.conf import settings
18 if settings.DEBUG:
19     urlpatterns += patterns('',
20         url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
21             'document_root': settings.MEDIA_ROOT,
22         }),
23    )