Browse Source

Galerie | clone + uprava urls

remotes/origin/Float_novinky
Bc. Petr Pecha 9 years ago
parent
commit
ef13214718
  1. 9
      galerie/urls.py
  2. 4
      seminar/urls.py

9
galerie/urls.py

@ -0,0 +1,9 @@
# coding: utf-8
from django.conf.urls import patterns, include, url
urlpatterns = patterns('',
(r'^(?P<pk>\d+)/$', 'galerie.views.nahled'),
(r'^(?P<pk>\d+)/(?P<fotka>\d+)/$', 'galerie.views.detail'),
)

4
seminar/urls.py

@ -1,3 +1,4 @@
from django.conf.urls import * # NOQA
from django.conf.urls import patterns, url from django.conf.urls import patterns, url
from . import views, export from . import views, export
@ -15,7 +16,8 @@ urlpatterns = patterns('',
url(r'^soustredeni/probehlo/$', views.SoustredeniListView.as_view(), url(r'^soustredeni/probehlo/$', views.SoustredeniListView.as_view(),
name = 'seminar_seznam_soustredeni'), name = 'seminar_seznam_soustredeni'),
url(r'^soustredeni/(?P<pk>\d+)/$', views.SoustredeniView.as_view(), name='seminar_soustredeni'), url(r'^soustredeni/probehlo/(?P<soustredeni>\d+)/$', views.SoustredeniView.as_view(), name='seminar_soustredeni'),
url(r'^soustredeni/probehlo/(?P<soustredeni>\d+)/fotogalerie/', include('galerie.urls')),
url(r'^zadani/aktualni/$', views.AktualniZadaniView, name='seminar_aktualni_zadani'), url(r'^zadani/aktualni/$', views.AktualniZadaniView, name='seminar_aktualni_zadani'),
url(r'^zadani/temata/$', views.ZadaniTemataView, name='seminar_temata'), url(r'^zadani/temata/$', views.ZadaniTemataView, name='seminar_temata'),

Loading…
Cancel
Save