old_contents: from django.conf import settings
  from django.conf.urls.static import static
  from django.contrib import admin
  from django.conf.urls import patterns, include, url
  
  
  from wagtail.wagtailcore import urls as wagtail_urls
  from wagtail.wagtailadmin import urls as wagtailadmin_urls
  
  from garnahata_site.sitemaps import MainXML, AdressXML, NewsXML, StaticXML
  from garnahata_site.feeds import LatestNewsFeed
  
  sitemaps = {
      'main': MainXML,
      'adresses': AdressXML,
      'news': NewsXML,
      'static': StaticXML,
  }
  
  
  urlpatterns = patterns(
      '',
      url(r'^ajax/suggest$', 'catalog.views.suggest', name='suggest'),
  
      url(r'^a/(?P<slug>.+)$', 'catalog.views.address_details',
          name='address_details'),
  
      url(r'^tag/', include('cms_pages.urls', namespace="cms_pages")),
  
      url(r'^latest$', 'catalog.views.latest_addresses',
          name='latest_addresses'),
  
      url(r'^by_city$', 'catalog.views.addresses_by_city',
          name='addresses_by_city'),
  
      url(r'^news$', 'cms_pages.views.news', name='news'),
  
      url(r'^news/special$', 'cms_pages.views.news', name='news', 
                                      kwargs={'special': True}),
  
      url(r'^search$', 'catalog.views.search', name='search'),
  
      url(r'^sitemap.xml$', 'django.contrib.sitemaps.views.index',
          {'sitemaps': sitemaps}),
      url(r'^sitemap-(?P<section>.+).xml$',
          'django.contrib.sitemaps.views.sitemap',
          {'sitemaps': sitemaps}),
      url(r'^admin/fs/', include('fs.urls', namespace='fs')),
  
      url(r'^search_ownerships$', 'catalog.views.search',
          name='search_ownerships', kwargs={"sources": ["ownerships"]}),
  
      url(r'^search_addresses$', 'catalog.views.search',
          name='search_addresses', kwargs={"sources": ["addresses"]}),
  
      url(r'^feeds/news/$', LatestNewsFeed(), name="rss_feed"),
  
      url(r'^tinymce/', include('tinymce.urls')),
  
      url(r'^admin/', include(admin.site.urls)),
      url(r'^cms/', include(wagtailadmin_urls)),
      url(r'', include(wagtail_urls)),
  ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  
new_contents: from django.conf import settings
  from django.conf.urls.static import static
  from django.contrib import admin
  from django.conf.urls import patterns, include, url
  
  
  from wagtail.wagtailcore import urls as wagtail_urls
  from wagtail.wagtailadmin import urls as wagtailadmin_urls
  
  from garnahata_site.sitemaps import MainXML, AdressXML, NewsXML, StaticXML
  from garnahata_site.feeds import LatestNewsFeed
  
  sitemaps = {
      'main': MainXML,
      'adresses': AdressXML,
      'news': NewsXML,
      'static': StaticXML,
  }
  
  
  urlpatterns = patterns(
      '',
      url(r'^ajax/suggest$', 'catalog.views.suggest', name='suggest'),
  
      url(r'^a/(?P<slug>.+)$', 'catalog.views.address_details',
          name='address_details'),
  
      url(r'^tag/', include('cms_pages.urls', namespace="cms_pages")),
  
      url(r'^latest$', 'catalog.views.latest_addresses',
          name='latest_addresses'),
  
      url(r'^by_city$', 'catalog.views.addresses_by_city',
          name='addresses_by_city'),
  
      url(r'^news$', 'cms_pages.views.news', name='news'),
  
      url(r'^news/special$', 'cms_pages.views.news', name='special_news',
          kwargs={'special': True}),
  
      url(r'^search$', 'catalog.views.search', name='search'),
  
      url(r'^sitemap.xml$', 'django.contrib.sitemaps.views.index',
          {'sitemaps': sitemaps}),
      url(r'^sitemap-(?P<section>.+).xml$',
          'django.contrib.sitemaps.views.sitemap',
          {'sitemaps': sitemaps}),
      url(r'^admin/fs/', include('fs.urls', namespace='fs')),
  
      url(r'^search_ownerships$', 'catalog.views.search',
          name='search_ownerships', kwargs={"sources": ["ownerships"]}),
  
      url(r'^search_addresses$', 'catalog.views.search',
          name='search_addresses', kwargs={"sources": ["addresses"]}),
  
      url(r'^feeds/news/$', LatestNewsFeed(), name="rss_feed"),
  
      url(r'^tinymce/', include('tinymce.urls')),
  
      url(r'^admin/', include(admin.site.urls)),
      url(r'^cms/', include(wagtailadmin_urls)),
      url(r'', include(wagtail_urls)),
  ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  
subject: Fix for urlname