Commit b5cfc84b authored by Patrick's avatar Patrick

Refactoring

parent 66138b80
from cms.sitemaps import CMSSitemap
from django.conf.urls import include, url
from django.conf.urls.i18n import i18n_patterns
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.contrib.sitemaps.views import sitemap
from cms.sitemaps import CMSSitemap
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
# admin.autodiscover
......@@ -12,8 +11,9 @@ urlpatterns = i18n_patterns(
url(r'^repanier/', include('repanier.urls')),
url(r'^coordi/', include(admin.site.urls)),
# url(r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': {'cmspages': CMSSitemap}}),
url(r'^sitemap\.xml$', sitemap, {'sitemaps': {'cmspages': CMSSitemap}}, name='django.contrib.sitemaps.views.sitemap'),
url(r'^sitemap\.xml$', sitemap, {'sitemaps': {'cmspages': CMSSitemap}},
name='django.contrib.sitemaps.views.sitemap'),
url(r'^', include('cms.urls')),
)
urlpatterns += staticfiles_urlpatterns()
\ No newline at end of file
urlpatterns += staticfiles_urlpatterns()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment