Skip to content

Commit

Permalink
Ajout des urls pour les versions xml et html du sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
chloend committed Nov 5, 2024
1 parent 954226e commit cc313ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/urls.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
from django.conf import settings
from django.conf.urls.static import static
from django.urls import include, path

from wagtail import urls as wagtail_urls
from wagtail.admin import urls as wagtailadmin_urls
from wagtail.contrib.sitemaps.views import sitemap
from wagtail.documents import urls as wagtaildocs_urls
from wagtail_transfer import urls as wagtailtransfer_urls

Expand All @@ -20,6 +22,8 @@
path("profil/reseaux/", include("lemarche.www.dashboard_networks.urls")),
path("profil/listes-dachats/", include("lemarche.www.dashboard_favorites.urls")),
path("select2/", include("django_select2.urls")),
# sitemap
path("sitemap.xml", sitemap, name="sitemap"), # appears above the default Wagtail page serving route
# admin blog
path("cms/", include(wagtailadmin_urls)),
path("blog/", include("blog.urls")),
Expand Down
2 changes: 2 additions & 0 deletions lemarche/www/pages/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
ImpactCalculatorView,
PageView,
SiaeGroupListView,
SitemapView,
SocialImpactBuyersCalculatorView,
StatsView,
TrackView,
Expand Down Expand Up @@ -83,6 +84,7 @@
path("cgu/", PageView.as_view(), {"url": "/cgu/"}, name="cgu"),
path("cgu-api/", PageView.as_view(), {"url": "/cgu-api/"}, name="cgu-api"),
path("confidentialite/", PageView.as_view(), {"url": "/confidentialite/"}, name="confidentialite"),
path("plan-du-site/", SitemapView.as_view(), name="plan-du-site"),
# Error pages
path("403/", TemplateView.as_view(template_name="403.html"), name="403"),
path("404/", TemplateView.as_view(template_name="404.html"), name="404"),
Expand Down

0 comments on commit cc313ff

Please sign in to comment.