|
|
|
@ -3,11 +3,12 @@ from django.conf import settings |
|
|
|
from django.conf.urls import patterns, include, url |
|
|
|
from django.conf.urls import patterns, include, url |
|
|
|
from core.simple_index_view import AdvertisingView, AboutView |
|
|
|
from core.simple_index_view import AdvertisingView, AboutView |
|
|
|
from views import MainPageView |
|
|
|
from views import MainPageView |
|
|
|
|
|
|
|
from django.contrib.sitemaps import views |
|
|
|
import debug_toolbar |
|
|
|
import debug_toolbar |
|
|
|
from django.views.generic.base import TemplateView |
|
|
|
from django.views.generic.base import TemplateView |
|
|
|
|
|
|
|
|
|
|
|
class Robot(TemplateView): |
|
|
|
class Robot(TemplateView): |
|
|
|
template_name = 'robot.txt' |
|
|
|
template_name = 'robots.txt' |
|
|
|
content_type = 'text/plain' |
|
|
|
content_type = 'text/plain' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -15,19 +16,23 @@ from django.contrib.sitemaps import Sitemap |
|
|
|
from exposition.models import Exposition |
|
|
|
from exposition.models import Exposition |
|
|
|
|
|
|
|
|
|
|
|
from sitemaps import ExpoCard, ExpoCity, ExpoCountry, ExpoTheme, ExpoTag, ConfCard, ConfCity, ConfCountry, ConfTheme,\ |
|
|
|
from sitemaps import ExpoCard, ExpoCity, ExpoCountry, ExpoTheme, ExpoTag, ConfCard, ConfCity, ConfCountry, ConfTheme,\ |
|
|
|
ConfTag, NewsSiteMap, BlogsSiteMap |
|
|
|
ConfTag, NewsSiteMap, BlogsSiteMap, Additional, Important |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sitemaps = { |
|
|
|
sitemaps = { |
|
|
|
'expo': ExpoCard(), 'news': NewsSiteMap(), 'blogs': BlogsSiteMap(),#'expo_city': ExpoCity(), 'expo_country': ExpoCountry(), 'expo_theme': ExpoTheme(), \ |
|
|
|
'expo_card': ExpoCard(), 'news': NewsSiteMap(), 'blogs': BlogsSiteMap(), 'expo_city': ExpoCity(), \ |
|
|
|
'conference': ConfCard(), 'expo_tag': ExpoTag(), 'conference_city': ConfCity(), 'conference_country': ConfCountry(),\ |
|
|
|
'expo_country': ExpoCountry(), 'expo_theme': ExpoTheme(), \ |
|
|
|
'conference_theme': ConfTheme(), 'conference_tag': ConfTag() |
|
|
|
'conference_card': ConfCard(), 'expo_tag': ExpoTag(), 'conference_city': ConfCity(), 'conference_country': ConfCountry(),\ |
|
|
|
|
|
|
|
'conference_theme': ConfTheme(), 'conference_tag': ConfTag(), 'main': Important(), 'additional': Additional() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
urlpatterns = patterns('', |
|
|
|
urlpatterns = patterns('', |
|
|
|
#url(r'^__debug__/', include(debug_toolbar.urls)), |
|
|
|
#url(r'^__debug__/', include(debug_toolbar.urls)), |
|
|
|
url(r'^admin/', include('proj.admin_urls')), |
|
|
|
url(r'^admin/', include('proj.admin_urls')), |
|
|
|
url(r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}), |
|
|
|
#url(r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}), |
|
|
|
url(r'^robot\.txt$', Robot.as_view()), |
|
|
|
url(r'^sitemap\.xml$', views.index, {'sitemaps': sitemaps}), |
|
|
|
|
|
|
|
url(r'^sitemap-(?P<section>.+)\.xml$', views.sitemap, {'sitemaps': sitemaps}), |
|
|
|
|
|
|
|
url(r'^robots.txt$', Robot.as_view()), |
|
|
|
url(r'^$', MainPageView.as_view()), |
|
|
|
url(r'^$', MainPageView.as_view()), |
|
|
|
url(r'^theme/', include('theme.urls')), |
|
|
|
url(r'^theme/', include('theme.urls')), |
|
|
|
url(r'^places/', include('place_exposition.urls')), |
|
|
|
url(r'^places/', include('place_exposition.urls')), |
|
|
|
|