Galerie | clone + uprava urls
This commit is contained in:
parent
6325e7d5e8
commit
ef13214718
2 changed files with 12 additions and 1 deletions
9
galerie/urls.py
Normal file
9
galerie/urls.py
Normal file
|
@ -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'),
|
||||||
|
)
|
||||||
|
|
|
@ -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…
Reference in a new issue