summaryrefslogtreecommitdiff
path: root/config/base_urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'config/base_urls.py')
-rw-r--r--config/base_urls.py11
1 files changed, 10 insertions, 1 deletions
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'<slug>', PageDetailView.as_view()),