mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
14 lines
459 B
Python
14 lines
459 B
Python
from django.contrib.flatpages.sitemaps import FlatPageSitemap
|
|
from django.contrib.sitemaps import views
|
|
from django.urls import include, path
|
|
|
|
urlpatterns = [
|
|
path(
|
|
'flatpages/sitemap.xml', views.sitemap,
|
|
{'sitemaps': {'flatpages': FlatPageSitemap}},
|
|
name='django.contrib.sitemaps.views.sitemap'),
|
|
|
|
path('flatpage_root/', include('django.contrib.flatpages.urls')),
|
|
path('accounts/', include('django.contrib.auth.urls')),
|
|
]
|