# -*- 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('', # search url(r'expo/search/', ExpositionSearchView.as_view()), # country catalog url(r'expo/country/$', ExpositionByCountry.as_view()), url(r'expo/country/(?P.*)/(?P\d+)/(?P.*)/page/(?P\d+)/$', ExpoCountryCatalog.as_view()), url(r'expo/country/(?P.*)/(?P\d+)/page/(?P\d+)/$', ExpoCountryCatalog.as_view()), url(r'expo/country/(?P.*)/page/(?P\d+)/$', ExpoCountryCatalog.as_view()), url(r'expo/country/(?P.*)/(?P\d+)/(?P.*)/$', ExpoCountryCatalog.as_view()), url(r'expo/country/(?P.*)/(?P\d+)/$', ExpoCountryCatalog.as_view()), url(r'expo/country/(?P.*)/$', ExpoCountryCatalog.as_view()), # city catalog url(r'expo/city/$', ExpositionByCity.as_view()), url(r'expo/city/(?P.*)/(?P\d+)/(?P.*)/page/(?P\d+)/$', ExpoCityCatalog.as_view()), url(r'expo/city/(?P.*)/(?P\d+)/page/(?P\d+)/$', ExpoCityCatalog.as_view()), url(r'expo/city/(?P.*)/page/(?P\d+)/$', ExpoCityCatalog.as_view()), url(r'expo/city/(?P.*)/(?P\d+)/(?P.*)/$', ExpoCityCatalog.as_view()), url(r'expo/city/(?P.*)/(?P\d+)/$', ExpoCityCatalog.as_view()), url(r'expo/city/(?P.*)/$', ExpoCityCatalog.as_view()), # theme catalog url(r'expo/theme/$', ExpositionByTheme.as_view()), url(r'expo/theme/(?P.*)/(?P\d+)/(?P.*)/page/(?P\d+)/$', ExpoThemeCatalog.as_view()), url(r'expo/theme/(?P.*)/(?P\d+)/page/(?P\d+)/$', ExpoThemeCatalog.as_view()), url(r'expo/theme/(?P.*)/page/(?P\d+)/$', ExpoThemeCatalog.as_view()), url(r'expo/theme/(?P.*)/(?P\d+)/(?P.*)/$', ExpoThemeCatalog.as_view()), url(r'expo/theme/(?P.*)/(?P\d+)/$', ExpoThemeCatalog.as_view()), url(r'expo/theme/(?P.*)/$', ExpoThemeCatalog.as_view()), # tag catalog url(r'expo/tag/(?P.*)/(?P\d+)/(?P.*)/page/(?P\d+)/$', ExpoTagCatalog.as_view()), url(r'expo/tag/(?P.*)/(?P\d+)/page/(?P\d+)/$', ExpoTagCatalog.as_view()), url(r'expo/tag/(?P.*)/page/(?P\d+)/$', ExpoTagCatalog.as_view()), url(r'expo/tag/(?P.*)/(?P\d+)/(?P.*)/$', ExpoTagCatalog.as_view()), url(r'expo/tag/(?P.*)/(?P\d+)/$', ExpoTagCatalog.as_view()), url(r'expo/tag/(?P.*)/$', ExpoTagCatalog.as_view()), # expo additional pages url(r'expo/(?P.*)/statistic/$', ExpositionStatistic.as_view()), url(r'expo/(?P.*)/price/$', ExpositionPrice.as_view()), url(r'expo/(?P.*)/program/$', ExpositionProgramme.as_view()), url(r'expo/(?P.*)/visitors/page/(?P\d+)/$', ExpoVisitors.as_view()), url(r'expo/(?P.*)/visitors/$', ExpoVisitors.as_view()), url(r'expo/(?P.*)/members/page/(?P\d+)/$', ExpoMembers.as_view()), url(r'expo/(?P.*)/members/$', ExpoMembers.as_view()), url(r'expo/(?P.*)/service/(?P.*)/', ExpositionServiceView.as_view()), # expo list url(r'expo/(?P\d+)/(?P.*)/page/(?P\d+)/$', ExpoList.as_view()), url(r'expo/(?P\d+)/page/(?P\d+)/$', ExpoList.as_view()), url(r'expo/(?P\d+)/(?P.*)/$', ExpoList.as_view()), url(r'expo/(?P\d+)/$', ExpoList.as_view()), url(r'expo/page/(?P\d+)/$', ExpoList.as_view()), # expo page url(r'expo/(?P.*)/$', ExpoDetail.as_view()),# event url(r'expo/$', ExpoList.as_view()), url(r'expo/add-note/(?P.*)/$', 'exposition.views.add_note'), #url(r'expo/(?P.*)/service/(?P.*)/$', ExpositionServiceView.as_view()), #url(r'expo/(?P.*)/service/(?P.*)/$', ExpositionServiceView.as_view()), #url(r'expo/(?P.*)/statistic/$', ExpositionStatistic.as_view()), url(r'exposition-add-calendar/(?P\d+)/$', 'exposition.views.exposition_add_calendar'), url(r'exposition-visit/(?P\d+)/$', 'exposition.views.exposition_visit'), )