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.
92 lines
5.0 KiB
92 lines
5.0 KiB
# -*- coding: utf-8 -*-
|
|
from django.conf.urls import patterns, include, url
|
|
from views import ExpositionStatistic, ExpositionPrice,\
|
|
ExpositionProgramme, ExpositionSearchView, ExpositionByCountry, ExpositionByTheme, ExpositionByCity
|
|
|
|
|
|
from django.http import HttpResponse
|
|
from views import ExpositionServiceView
|
|
from views import ExpoCountryCatalog, ExpoCityCatalog, ExpoThemeCatalog, ExpoTagCatalog, ExpoList, ExpoDetail,\
|
|
ExpoVisitors, ExpoMembers
|
|
|
|
|
|
urlpatterns = patterns('',
|
|
url(r'expo/add-note/(?P<slug>.*)/$', 'exposition.views.add_note'),
|
|
url(r'exposition-add-calendar/(?P<id>\d+)/$', 'exposition.views.exposition_add_calendar'),
|
|
url(r'exposition-visit/(?P<id>\d+)/$', 'exposition.views.exposition_visit'),
|
|
# search
|
|
url(r'expo/search/', ExpositionSearchView.as_view()),
|
|
|
|
|
|
|
|
# country catalog
|
|
url(r'expo/country/$', ExpositionByCountry.as_view()),
|
|
url(r'expo/country/(?P<slug>.*)/(?P<year>\d+)/(?P<month>.*)/page/(?P<page>\d+)/$', ExpoCountryCatalog.as_view()),
|
|
url(r'expo/country/(?P<slug>.*)/(?P<year>\d+)/page/(?P<page>\d+)/$', ExpoCountryCatalog.as_view()),
|
|
url(r'expo/country/(?P<slug>.*)/page/(?P<page>\d+)/$', ExpoCountryCatalog.as_view()),
|
|
url(r'expo/country/(?P<slug>.*)/(?P<year>\d+)/(?P<month>.*)/$', ExpoCountryCatalog.as_view()),
|
|
url(r'expo/country/(?P<slug>.*)/(?P<year>\d+)/$', ExpoCountryCatalog.as_view()),
|
|
url(r'expo/country/(?P<slug>.*)/$', ExpoCountryCatalog.as_view(), {'meta_id':5}),
|
|
# city catalog
|
|
url(r'expo/city/$', ExpositionByCity.as_view()),
|
|
url(r'expo/city/(?P<slug>.*)/(?P<year>\d+)/(?P<month>.*)/page/(?P<page>\d+)/$', ExpoCityCatalog.as_view()),
|
|
url(r'expo/city/(?P<slug>.*)/(?P<year>\d+)/page/(?P<page>\d+)/$', ExpoCityCatalog.as_view()),
|
|
url(r'expo/city/(?P<slug>.*)/page/(?P<page>\d+)/$', ExpoCityCatalog.as_view()),
|
|
url(r'expo/city/(?P<slug>.*)/(?P<year>\d+)/(?P<month>.*)/$', ExpoCityCatalog.as_view()),
|
|
url(r'expo/city/(?P<slug>.*)/(?P<year>\d+)/$', ExpoCityCatalog.as_view()),
|
|
url(r'expo/city/(?P<slug>.*)/$', ExpoCityCatalog.as_view()),
|
|
# theme catalog
|
|
url(r'expo/theme/$', ExpositionByTheme.as_view()),
|
|
|
|
url(r'expo/theme/(?P<slug>.*)/country/(?P<country_slug>.*)/page/(?P<page>\d+)/$', ExpoThemeCatalog.as_view()),
|
|
url(r'expo/theme/(?P<slug>.*)/country/(?P<country_slug>.*)/$', ExpoThemeCatalog.as_view()),
|
|
url(r'expo/theme/(?P<slug>.*)/city/(?P<city_slug>.*)/page/(?P<page>\d+)/$', ExpoThemeCatalog.as_view()),
|
|
url(r'expo/theme/(?P<slug>.*)/city/(?P<city_slug>.*)/$', ExpoThemeCatalog.as_view()),
|
|
|
|
url(r'expo/theme/(?P<slug>.*)/(?P<year>\d+)/(?P<month>.*)/page/(?P<page>\d+)/$', ExpoThemeCatalog.as_view()),
|
|
url(r'expo/theme/(?P<slug>.*)/(?P<year>\d+)/page/(?P<page>\d+)/$', ExpoThemeCatalog.as_view()),
|
|
url(r'expo/theme/(?P<slug>.*)/page/(?P<page>\d+)/$', ExpoThemeCatalog.as_view()),
|
|
url(r'expo/theme/(?P<slug>.*)/(?P<year>\d+)/(?P<month>.*)/$', ExpoThemeCatalog.as_view()),
|
|
url(r'expo/theme/(?P<slug>.*)/(?P<year>\d+)/$', ExpoThemeCatalog.as_view()),
|
|
url(r'expo/theme/(?P<slug>.*)/$', ExpoThemeCatalog.as_view()),
|
|
# tag catalog
|
|
url(r'expo/tag/(?P<slug>.*)/(?P<year>\d+)/(?P<month>.*)/page/(?P<page>\d+)/$', ExpoTagCatalog.as_view()),
|
|
url(r'expo/tag/(?P<slug>.*)/(?P<year>\d+)/page/(?P<page>\d+)/$', ExpoTagCatalog.as_view()),
|
|
url(r'expo/tag/(?P<slug>.*)/page/(?P<page>\d+)/$', ExpoTagCatalog.as_view()),
|
|
url(r'expo/tag/(?P<slug>.*)/(?P<year>\d+)/(?P<month>.*)/$', ExpoTagCatalog.as_view()),
|
|
url(r'expo/tag/(?P<slug>.*)/(?P<year>\d+)/$', ExpoTagCatalog.as_view()),
|
|
url(r'expo/tag/(?P<slug>.*)/$', ExpoTagCatalog.as_view()),
|
|
# expo additional pages
|
|
url(r'expo/(?P<slug>.*)/statistic/$', ExpositionStatistic.as_view()),
|
|
url(r'expo/(?P<slug>.*)/price/$', ExpositionPrice.as_view()),
|
|
url(r'expo/(?P<slug>.*)/program/$', ExpositionProgramme.as_view()),
|
|
url(r'expo/(?P<slug>.*)/visitors/page/(?P<page>\d+)/$', ExpoVisitors.as_view()),
|
|
url(r'expo/(?P<slug>.*)/visitors/$', ExpoVisitors.as_view()),
|
|
url(r'expo/(?P<slug>.*)/members/page/(?P<page>\d+)/$', ExpoMembers.as_view()),
|
|
url(r'expo/(?P<slug>.*)/members/$', ExpoMembers.as_view()),
|
|
url(r'expo/(?P<slug>.*)/service/(?P<service_url>.*)/', ExpositionServiceView.as_view()),
|
|
|
|
# expo list
|
|
url(r'expo/(?P<year>\d+)/(?P<month>.*)/page/(?P<page>\d+)/$', ExpoList.as_view(), {'meta_id':4}),
|
|
url(r'expo/(?P<year>\d+)/page/(?P<page>\d+)/$', ExpoList.as_view(), {'meta_id':3}),
|
|
url(r'expo/(?P<year>\d+)/(?P<month>.*)/$', ExpoList.as_view(), {'meta_id':4}),
|
|
url(r'expo/(?P<year>\d+)/$', ExpoList.as_view(), {'meta_id':3}),
|
|
url(r'expo/page/(?P<page>\d+)/$', ExpoList.as_view(), {'meta_id':2}),
|
|
# expo page
|
|
url(r'expo/(?P<slug>.*)/$', ExpoDetail.as_view()),# event
|
|
url(r'expo/$', ExpoList.as_view(), {'meta_id':2}),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#url(r'expo/(?P<slug>.*)/service/(?P<url>.*)/$', ExpositionServiceView.as_view()),
|
|
|
|
#url(r'expo/(?P<params>.*)/service/(?P<url>.*)/$', ExpositionServiceView.as_view()),
|
|
#url(r'expo/(?P<params>.*)/statistic/$', ExpositionStatistic.as_view()),
|
|
|
|
|
|
)
|
|
|