# -*- coding: utf-8 -*- from django.conf.urls import url, patterns from .views import CatalogDetailedView, SpecCatalog urlpatterns = patterns('', url(r'^city/$', SpecCatalog.as_view(), {'type': 'city'}, name="spec_city"), url(r'^country/$', SpecCatalog.as_view(), {'type': 'country'}, name="spec_country"), url(r'^city/(?P.*)/$', CatalogDetailedView.as_view(), {'type': 'city'}, name="spec_catalog_city"), url(r'^country/(?P.*)/$', CatalogDetailedView.as_view(), {'type': 'country'}, name="spec_catalog_country"), )