# -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url from views import PlaceSearchView, PlaceDetail, PlaceList, PlaceCityCatalog, PlaceCountryCatalog, PlacePhoto urlpatterns = patterns('', # correct url(r'search/', PlaceSearchView.as_view()), # correct #url(r'country/$', PlaceCountryCatalog.as_view()), url(r'country/(?P.*)/page/(?P\d+)/$', PlaceCountryCatalog.as_view()), url(r'country/(?P.*)/$', PlaceCountryCatalog.as_view()), # correct #url(r'expo/city/$', ExpositionByCity.as_view()), url(r'city/(?P.*)/page/(?P\d+)/$', PlaceCityCatalog.as_view()), url(r'city/(?P.*)/$', PlaceCityCatalog.as_view()), #!!! url(r'(?P.*)/photo/page/(?P\d+)/$', PlacePhoto.as_view()), url(r'(?P.*)/photo/$', PlacePhoto.as_view()), #url(r'expo/(?P.*)/service/(?P.*)/$', ExpositionServiceView.as_view()), url(r'(?P.*)/$', PlaceDetail.as_view()), url(r'page/(?P\d+)/$', PlaceList.as_view()), url(r'$', PlaceList.as_view()), )