# -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url from django.http import HttpResponse from django.views.decorators.cache import cache_page from redirect_views import old_redirect, old_profile, tag_redirect def test(request): return HttpResponse('test') urlpatterns = patterns('', # service url(r'^rubricator.php/?result_type=expo$', old_redirect, {'redirect_url': '/expo/'}), #??? url(r'^serv-zaoch-info.php$', old_redirect, {'redirect_url': '/service/remote/'}), url(r'^serv-visit-info.php$', old_redirect, {'redirect_url': '/service/visit/'}), url(r'^serv-bilet-info.php$', old_redirect, {'redirect_url': '/service/tickets/'}), url(r'^serv-translator-info.php$', old_redirect, {'redirect_url': '/translators/'}), url(r'^content.php/coID/(?P.*)/perevodchiki-(?P.*)/$', old_redirect, {'redirect_url': '/translators/{country_or_city}/'}), url(r'^content.php/coID/(?P.*)/perevodchik-(?P.*)/$', old_redirect, {'redirect_url': '/translators/{country_or_city}/'}), url(r'^(?P.*)/(?P.*)/buildstand.html$', old_redirect, {'redirect_url': '{event_catalog}{event_url}/service/participation/'}), url(r'^(?P.*)/(?P.*)/bilet.html$', old_redirect, {'redirect_url': '{event_catalog}{event_url}/service/tickets/'}), url(r'^(?P.*)/(?P.*)/zaoch.html$', old_redirect, {'redirect_url': '{event_catalog}{event_url}/service/remote/'}), url(r'^(?P.*)/(?P.*)/translator.html$', old_redirect, {'redirect_url': '{event_catalog}{event_url}/service/translator/'}), url(r'^(?P.*)/(?P.*)/visit.html$', old_redirect, {'redirect_url': '{event_catalog}{event_url}/service/visit/'}), url(r'^(?P.*)/(?P.*)/uchastie.html$', old_redirect, {'redirect_url': '{event_catalog}{event_url}/service/participation/'}), url(r'^(?P.*)/(?P.*)/ad.html$', old_redirect, {'redirect_url': '{event_catalog}{event_url}/service/participation/'}), url(r'^(?P.*)/(?P.*)/mobilestand.html$', old_redirect, {'redirect_url': '{event_catalog}{event_url}/service/participation/'}), url(r'^(?P.*)/(?P.*)/catalogue.html$', old_redirect, {'redirect_url': '{event_catalog}{event_url}/'}), # company url(r'^company/(?P(?!create-company|update/).*)$', old_redirect, {'redirect_url': '/members/{company}/'}), # articles and news url(r'^articles.php$', old_redirect, {'redirect_url': '/blogs/'}), url(r'^news.php$', old_redirect, {'redirect_url': '/news/'}), url(r'^news.php/news/archive/', old_redirect, {'redirect_url': '/news/'}), url(r'^article_info.php/articles_id/(?P
\d+)/(?P.*)$', old_redirect, {'redirect_url': '/blogs/{article}/'}), url(r'^news.php/news_id/(?P
\d+)/(?P.*)$', old_redirect, {'redirect_url': '/news/{article}/'}), url(r'^newsp.php/news_id/(?P\d+)/(?P.*)$', old_redirect, {'redirect_url': '/news/{news_p}/'}), # users url(r'^users/(?P.*)/$', old_redirect, {'redirect_url': '/{user}/'}), url(r'^user/(?P.*)/$', old_redirect, {'redirect_url': '/{user}/'}), url(r'^account_edit.php$', old_profile), url(r'^myexpo.php$', old_redirect, {'redirect_url': '/profile/calendar/'}), url(r'^newsletter2.php?email=(?P.*)$', old_redirect, {'redirect_url': '/profile/settings/'}), url(r'^account_password.php$', old_redirect, {'redirect_url': '/profile/settings/'}), #url(r'^serv-personal-info.php$', old_redirect, {'redirect_url': '/service/staff/'}), # EXPO # city url(r'^catalog/city-(?P.*)/theme-(?P.*)/year-(?P\d+)/month-(?P.*)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/city/{city}/{year}/{month}/page/{page}/'}), url(r'^catalog/city-(?P.*)/theme-(?P.*)/year-(?P\d+)/month-(?P.*)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/city/{city}/{year}/{month}/page/{page}/'}), url(r'^catalog/city-(?P.*)/theme-(?P.*)/year-(?P\d+)/month-(?P.*)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/city/{city}/{year}/{month}/'}), url(r'^catalog/city-(?P.*)/theme-(?P.*)/year-(?P\d+)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/city/{city}/{year}/page/{page}/'}), url(r'^catalog/city-(?P.*)/theme-(?P.*)/year-(?P\d+)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/city/{city}/{year}/page/{page}/'}), url(r'^catalog/city-(?P.*)/theme-(?P.*)/year-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/city/{city}/{year}/'}), url(r'^catalog/city-(?P.*)/theme-(?P.*)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/city/{city}/page/{page}/'}), url(r'^catalog/city-(?P.*)/theme-(?P.*)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/city/{city}/page/{page}/'}), url(r'^catalog/city-(?P.*)/theme-(?P.*)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/city/{city}/'}), url(r'^catalog/city-(?P.*)/year-(?P\d+)/month-(?P.*)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/city/{city}/{year}/{month}/page/{page}/'}), url(r'^catalog/city-(?P.*)/year-(?P\d+)/month-(?P.*)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/city/{city}/{year}/{month}/page/{page}/'}), url(r'^catalog/city-(?P.*)/year-(?P\d+)/month-(?P.*)/$', old_redirect, {'redirect_url': '/expo/city/{city}/{year}/{month}/'}), url(r'^catalog/city/(?P.*)/year-(?P\d+)/month-(?P.*)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/city/{city}/{year}/{month}/page/{page}/'}), url(r'^catalog/city/(?P.*)/year-(?P\d+)/month-(?P.*)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/city/{city}/{year}/{month}/page/{page}/'}), url(r'^catalog/city/(?P.*)/year-(?P\d+)/month-(?P.*)/$', old_redirect, {'redirect_url': '/expo/city/{city}/{year}/{month}/'}), url(r'^catalog/city-(?P.*)/year-(?P\d+)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/city/{city}/{year}/page/{page}/'}), url(r'^catalog/city-(?P.*)/year-(?P\d+)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/city/{city}/{year}/page/{page}/'}), url(r'^catalog/city-(?P.*)/year-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/city/{city}/{year}/'}), url(r'^catalog/city/(?P.*)/year-(?P\d+)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/city/{city}/{year}/page/{page}/'}), url(r'^catalog/city/(?P.*)/year-(?P\d+)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/city/{city}/{year}/page/{page}/'}), url(r'^catalog/city/(?P.*)/year-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/city/{city}/{year}/'}), #----------------------------- url(r'^catalog/city-(?P.*)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/city/{city}/page/{page}/'}), url(r'^catalog/city-(?P.*)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/city/{city}/page/{page}/'}), url(r'^catalog/city-(?P.*)/$', old_redirect, {'redirect_url': '/expo/city/{city}/'}), # country url(r'^catalog/country-(?P.*)/theme-(?P.*)/year-(?P\d+)/month-(?P.*)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/country/{country}/{year}/{month}/page/{page}/'}), url(r'^catalog/country-(?P.*)/theme-(?P.*)/year-(?P\d+)/month-(?P.*)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/country/{country}/{year}/{month}/page/{page}/'}), url(r'^catalog/country-(?P.*)/theme-(?P.*)/year-(?P\d+)/month-(?P.*)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/country/{country}/{year}/{month}/'}), url(r'^catalog/country-(?P.*)/theme-(?P.*)/year-(?P\d+)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/country/{country}/{year}/page/{page}/'}), url(r'^catalog/country-(?P.*)/theme-(?P.*)/year-(?P\d+)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/country/{country}/{year}/page/{page}/'}), url(r'^catalog/country-(?P.*)/theme-(?P.*)/year-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/country/{country}/{year}/'}), url(r'^catalog/country-(?P.*)/theme-(?P.*)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/country/{country}/page/{page}/'}), url(r'^catalog/country-(?P.*)/theme-(?P.*)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/country/{country}/page/{page}/'}), url(r'^catalog/country-(?P.*)/theme-(?P.*)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/country/{country}/'}), url(r'^catalog/country-(?P.*)/year-(?P\d+)/month-(?P.*)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/country/{country}/{year}/{month}/page/{page}/'}), url(r'^catalog/country-(?P.*)/year-(?P\d+)/month-(?P.*)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/country/{country}/{year}/{month}/page/{page}/'}), url(r'^catalog/country-(?P.*)/year-(?P\d+)/month-(?P.*)/$', old_redirect, {'redirect_url': '/expo/country/{country}/{year}/{month}/'}), url(r'^catalog/country/(?P.*)/year-(?P\d+)/month-(?P.*)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/country/{country}/{year}/{month}/page/{page}/'}), url(r'^catalog/country/(?P.*)/year-(?P\d+)/month-(?P.*)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/country/{country}/{year}/{month}/page/{page}/'}), url(r'^catalog/country/(?P.*)/year-(?P\d+)/month-(?P.*)/$', old_redirect, {'redirect_url': '/expo/country/{country}/{year}/{month}/'}), url(r'^catalog/country-(?P.*)/year-(?P\d+)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/country/{country}/{year}/page/{page}/'}), url(r'^catalog/country-(?P.*)/year-(?P\d+)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/country/{country}/{year}/page/{page}/'}), url(r'^catalog/country-(?P.*)/year-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/country/{country}/{year}/'}), url(r'^catalog/country/(?P.*)/year-(?P\d+)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/country/{country}/{year}/page/{page}/'}), url(r'^catalog/country/(?P.*)/year-(?P\d+)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/country/{country}/{year}/page/{page}/'}), url(r'^catalog/country/(?P.*)/year-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/country/{country}/{year}/'}), url(r'^catalog/country/(?P.*)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/country/{country}/page/{page}/'}), url(r'^catalog/country/(?P.*)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/country/{country}/page/{page}/'}), url(r'^catalog/country-(?P.*)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/country/{country}/'}), url(r'^catalog/country/(?P.*)/$', old_redirect, {'redirect_url': '/expo/country/{country}/'}), url(r'^catalog/country-(?P.*)/$', old_redirect, {'redirect_url': '/expo/country/{country}/'}), url(r'^catalog/country/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/country/page/{page}/'}), url(r'^catalog/country/$', old_redirect, {'redirect_url': '/expo/country/'}), # theme url(r'^catalog/theme-(?P.*)/year-(?P\d+)/month-(?P.*)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/{year}/{month}/page/{page}/'}), url(r'^catalog/theme-(?P.*)/year-(?P\d+)/month-(?P.*)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/{year}/{month}/page/{page}/'}), url(r'^catalog/theme-(?P.*)/year-(?P\d+)/month-(?P.*)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/{year}/{month}/'}), url(r'^catalog/theme-(?P.*)/year-(?P\d+)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/{year}/page/{page}/'}), url(r'^catalog/theme-(?P.*)/year-(?P\d+)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/{year}/page/{page}/'}), url(r'^catalog/theme-(?P.*)/year-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/{year}/'}), url(r'^catalog/theme-(?P.*)/city-(?P.*)/year-(?P\d+)/month-(?P.*)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/city/{city}/{year}/{month}/page/{page}/'}), url(r'^catalog/theme-(?P.*)/city-(?P.*)/year-(?P\d+)/month-(?P.*)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/city/{city}/{year}/{month}/page/{page}/'}), url(r'^catalog/theme-(?P.*)/city-(?P.*)/year-(?P\d+)/month-(?P.*)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/city/{city}/{year}/{month}/'}), url(r'^catalog/theme-(?P.*)/city-(?P.*)/year-(?P\d+)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/city/{city}/{year}/page/{page}/'}), url(r'^catalog/theme-(?P.*)/city-(?P.*)/year-(?P\d+)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/city/{city}/{year}/page/{page}/'}), url(r'^catalog/theme-(?P.*)/city-(?P.*)/year-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/city/{city}/{year}/'}), url(r'^catalog/theme-(?P.*)/city-(?P.*)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/city/{city}/page/{page}/'}), url(r'^catalog/theme-(?P.*)/city-(?P.*)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/city/{city}/page/{page}/'}), url(r'^catalog/theme-(?P.*)/city-(?P.*)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/city/{city}/'}), url(r'^catalog/theme-(?P.*)/country-(?P.*)/year-(?P\d+)/month-(?P.*)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/country/{country}/{year}/{month}/page/{page}/'}), url(r'^catalog/theme-(?P.*)/country-(?P.*)/year-(?P\d+)/month-(?P.*)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/country/{country}/{year}/{month}/page/{page}/'}), url(r'^catalog/theme-(?P.*)/country-(?P.*)/year-(?P\d+)/month-(?P.*)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/country/{country}/{year}/{month}/'}), url(r'^catalog/theme-(?P.*)/country-(?P.*)/year-(?P\d+)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/country/{country}/{year}/page/{page}/'}), url(r'^catalog/theme-(?P.*)/country-(?P.*)/year-(?P\d+)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/country/{country}/{year}/page/{page}/'}), url(r'^catalog/theme-(?P.*)/country-(?P.*)/year-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/country/{country}/{year}/'}), url(r'^catalog/theme-(?P.*)/country-(?P.*)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/country/{country}/page/{page}/'}), url(r'^catalog/theme-(?P.*)/country-(?P.*)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/country/{country}/page/{page}/'}), url(r'^catalog/theme-(?P.*)/country-(?P.*)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/country/{country}/'}), url(r'^catalog/theme/(?P.*)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/page/{page}/'}), url(r'^catalog/theme/(?P.*)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/page/{page}'}), url(r'^catalog/theme/(?P.*)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/'}), url(r'^catalog/theme-(?P.*)/page-(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/page/{page}/'}), url(r'^catalog/theme-(?P.*)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/page/{page}/'}), url(r'^catalog/theme-(?P.*)/$', old_redirect, {'redirect_url': '/expo/theme/{theme}/'}), url(r'^catalog/theme/$', old_redirect, {'redirect_url': '/expo/theme/'}), # tag url(r'^tags.php/theme/(?P.*)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/tag/{tag}/'}), url(r'^tags.php/theme/(?P.*)/$', old_redirect, {'redirect_url': '/expo/tag/{tag}/'}), url(r'^tag/(?P.*)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/tag/{tag}/page/{page}/'}), url(r'^tag/(?P.*)/$', tag_redirect, {'redirect_url': '/expo/tag/{tag}/'}), url(r'^catalog/(?P.*)/page/(?P\d+)/$', old_redirect, {'redirect_url': '/expo/city/{city}/page/{page}/'}), url(r'^catalog/(?P.*)/$', old_redirect, {'redirect_url': '/expo/city/{city}/'}), url(r'^catalog/$', old_redirect, {'redirect_url': '/expo/city/'}), # tag url(r'^(?P.*)/(?P.*).html$', old_redirect, {'redirect_url': '{event_catalog}{event_url}/'}), )