You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.5 KiB
58 lines
1.5 KiB
# -*- coding: utf-8 -*-
|
|
from django.conf.urls import patterns, url
|
|
|
|
from .views import (
|
|
PlaceCityCatalog, PlaceCountryCatalog, PlaceDetail, PlaceList, PlacePhoto,
|
|
PlaceByCountry, PlaceByCity, PlaceExpositionListView
|
|
)
|
|
|
|
urlpatterns = patterns(
|
|
'',
|
|
url(r'^country/$', PlaceByCountry.as_view(), {'meta_id': 49}),
|
|
url(
|
|
r'^country/(?P<slug>.*)/page/(?P<page>\d+)/$',
|
|
PlaceCountryCatalog.as_view(),
|
|
{'meta_id': 49}
|
|
),
|
|
url(
|
|
r'^country/(?P<slug>.*)/$',
|
|
PlaceCountryCatalog.as_view(),
|
|
{'meta_id': 49},
|
|
name='place_country'
|
|
),
|
|
|
|
url(r'^city/$', PlaceByCity.as_view(), {'meta_id': 48}),
|
|
url(
|
|
r'^city/(?P<slug>.*)/page/(?P<page>\d+)/$',
|
|
PlaceCityCatalog.as_view(),
|
|
{'meta_id': 48}
|
|
),
|
|
url(
|
|
r'^city/(?P<slug>.*)/$',
|
|
PlaceCityCatalog.as_view(),
|
|
{'meta_id': 48},
|
|
name='place_city'
|
|
),
|
|
|
|
url(
|
|
r'^(?P<slug>.*)/photo/page/(?P<page>\d+)/$',
|
|
PlacePhoto.as_view(),
|
|
{'meta_id': 91}
|
|
),
|
|
url(r'^(?P<slug>.*)/photo/$', PlacePhoto.as_view(), {'meta_id': 91}),
|
|
|
|
url(r'^page/(?P<page>\d+)/$', PlaceList.as_view(), {'meta_id': 46}),
|
|
url(
|
|
r'^(?P<slug>.*)/expositions/$',
|
|
PlaceExpositionListView.as_view(),
|
|
{'meta_id': 94},
|
|
name='place_exposition_list'
|
|
),
|
|
url(
|
|
r'^(?P<slug>.*)/$',
|
|
PlaceDetail.as_view(),
|
|
{'meta_id': 47},
|
|
name='place_detail'
|
|
),
|
|
url(r'^$', PlaceList.as_view(), {'meta_id': 46}),
|
|
)
|
|
|