parent
4dbd17ab4d
commit
a04fe870fa
3 changed files with 32 additions and 11 deletions
@ -1,11 +1,19 @@ |
||||
# -*- coding: utf-8 -*- |
||||
from django.conf.urls import url, patterns |
||||
from .views import CatalogDetailedView, SpecCatalog |
||||
from .views import CatalogDetailedView, SpecCatalog, redirect_old |
||||
|
||||
|
||||
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<city>.*)/all/page/(?P<page>\d+)/$', redirect_old, {'type': 'city'}), |
||||
url(r'^city/(?P<city>.*)/all/$', redirect_old, {'type': 'city'}), |
||||
url(r'^city/$', SpecCatalog.as_view(), {'type': 'city', 'meta_id': 86}, name="spec_city"), |
||||
url(r'^city/(?P<slug>.*)/$', CatalogDetailedView.as_view(), {'type': 'city', 'meta_id': 88}, name="spec_catalog_city"), |
||||
|
||||
url(r'^city/(?P<slug>.*)/$', CatalogDetailedView.as_view(), {'type': 'city'}, name="spec_catalog_city"), |
||||
url(r'^country/(?P<slug>.*)/$', CatalogDetailedView.as_view(), {'type': 'country'}, name="spec_catalog_country"), |
||||
url(r'^country/(?P<country>.*)/all/page/(?P<page>\d+)/$', redirect_old), |
||||
url(r'^country/(?P<country>.*)/all/$', redirect_old), |
||||
url(r'^country/$', SpecCatalog.as_view(), {'type': 'country', 'meta_id': 86}, name="spec_country"), |
||||
url(r'^country/(?P<slug>.*)/$', CatalogDetailedView.as_view(), {'type': 'country', 'meta_id': 87}, name="spec_catalog_country"), |
||||
url(r'^(?P<slug>.*)/$', redirect_old), |
||||
url(r'^page/(?P<page>\d+)/$', redirect_old), |
||||
url(r'^$', redirect_old), |
||||
) |
||||
Loading…
Reference in new issue