Add sitemap

This commit is contained in:
Jake Howard 2022-08-02 22:20:36 +01:00
parent bc18764ccf
commit 668bcc7d5b
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 3 additions and 0 deletions

View file

@ -54,6 +54,7 @@ INSTALLED_APPS = [
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.sitemaps",
"whitenoise.runserver_nostatic",
"django.contrib.staticfiles",
]

View file

@ -2,6 +2,7 @@ from django.conf import settings
from django.urls import include, path, re_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.images.views.serve import ServeView
@ -17,6 +18,7 @@ urlpatterns = [
ServeView.as_view(action="redirect"),
name="wagtailimages_serve",
),
path("sitemap.xml", sitemap),
]