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.
30 lines
1.1 KiB
30 lines
1.1 KiB
# -*- coding: utf-8 -*-
|
|
from django.conf.urls import include, patterns, url
|
|
|
|
from .views import (
|
|
PlaceCityCatalog,
|
|
PlaceCountryCatalog,
|
|
PlaceDetail,
|
|
PlaceList,
|
|
PlacePhoto,
|
|
PlaceByCountry,
|
|
PlaceByCity,
|
|
)
|
|
|
|
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>.*)/$', PlaceDetail.as_view(), {'meta_id': 47}),
|
|
url(r'^$', PlaceList.as_view(), {'meta_id':46}),
|
|
)
|
|
|