From e43cbc1a487b8ea45c05a4b394a7c60ffc4c0ba4 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 3 May 2019 12:24:25 -0500 Subject: added build system --- config/base_urls.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/base_urls.py b/config/base_urls.py index cbc9517..e55cd33 100644 --- a/config/base_urls.py +++ b/config/base_urls.py @@ -5,11 +5,20 @@ from django.conf import settings from django.contrib.sitemaps.views import sitemap from pages.views import PageDetailView +from pages.models import PageSitemap from blog.views import HomePageView +from blog.models import BlogSitemap +from links.models import LinkedSitemap #import builder.views import utils.views import builder.views +sitemaps = { + 'blog': BlogSitemap, + 'links': LinkedSitemap, + 'pages': PageSitemap, +} + admin.autodiscover() @@ -18,7 +27,7 @@ urlpatterns = [ path(r'admin/data/', include('utils.urls')), path(r'admin/', admin.site.urls), #path(r'luximages/insert/', utils.views.insert_image), - #path(r'sitemap.xml', sitemap, {'sitemaps': sitemaps}), + path(r'sitemap.xml', sitemap, {'sitemaps': sitemaps}), path(r'essays/', include('blog.urls')), path(r'linked/', include('links.urls')), path(r'', PageDetailView.as_view()), -- cgit v1.2.3-70-g09d2