diff --git a/galerie/urls.py b/galerie/urls.py new file mode 100644 index 00000000..66991dd4 --- /dev/null +++ b/galerie/urls.py @@ -0,0 +1,9 @@ +# coding: utf-8 + +from django.conf.urls import patterns, include, url + +urlpatterns = patterns('', + (r'^(?P\d+)/$', 'galerie.views.nahled'), + (r'^(?P\d+)/(?P\d+)/$', 'galerie.views.detail'), +) + diff --git a/seminar/urls.py b/seminar/urls.py index be4947c6..116646f3 100644 --- a/seminar/urls.py +++ b/seminar/urls.py @@ -1,3 +1,4 @@ +from django.conf.urls import * # NOQA from django.conf.urls import patterns, url from . import views, export @@ -15,7 +16,8 @@ urlpatterns = patterns('', url(r'^soustredeni/probehlo/$', views.SoustredeniListView.as_view(), name = 'seminar_seznam_soustredeni'), - url(r'^soustredeni/(?P\d+)/$', views.SoustredeniView.as_view(), name='seminar_soustredeni'), + url(r'^soustredeni/probehlo/(?P\d+)/$', views.SoustredeniView.as_view(), name='seminar_soustredeni'), + url(r'^soustredeni/probehlo/(?P\d+)/fotogalerie/', include('galerie.urls')), url(r'^zadani/aktualni/$', views.AktualniZadaniView, name='seminar_aktualni_zadani'), url(r'^zadani/temata/$', views.ZadaniTemataView, name='seminar_temata'),