summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-05-03 12:24:25 -0500
committerluxagraf <sng@luxagraf.net>2019-05-03 12:24:25 -0500
commite43cbc1a487b8ea45c05a4b394a7c60ffc4c0ba4 (patch)
tree8ef4800ef56bdadbc88158ec50f96e40b514b882 /config
parent0e59ad7de18bffcf6a62f9ee61275b4951c27358 (diff)
added build system
Diffstat (limited to 'config')
-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()),