diff options
author | luxagraf <sng@luxagraf.net> | 2019-05-05 11:40:42 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2019-05-05 11:40:42 -0500 |
commit | a2891841fbf1e5660693a1f9109f2e6810224a3b (patch) | |
tree | be0aae73fe8f5e6271a76e8c5c6dc35b00f347a6 /config | |
parent | bdc06f56d538358f1fa07d35afb5733c790e3ab2 (diff) |
Diffstat (limited to 'config')
-rw-r--r-- | config/base_urls.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config/base_urls.py b/config/base_urls.py index e55cd33..e46da64 100644 --- a/config/base_urls.py +++ b/config/base_urls.py @@ -8,6 +8,7 @@ from pages.views import PageDetailView from pages.models import PageSitemap from blog.views import HomePageView from blog.models import BlogSitemap +from tutorials.models import TutorialSitemap from links.models import LinkedSitemap #import builder.views import utils.views @@ -17,6 +18,7 @@ sitemaps = { 'blog': BlogSitemap, 'links': LinkedSitemap, 'pages': PageSitemap, + 'tutorials': TutorialSitemap, } @@ -26,10 +28,12 @@ urlpatterns = [ re_path(r'^admin/build/.*', builder.views.do_build), path(r'admin/data/', include('utils.urls')), path(r'admin/', admin.site.urls), - #path(r'luximages/insert/', utils.views.insert_image), + path(r'luximages/insert/', utils.views.insert_image), path(r'sitemap.xml', sitemap, {'sitemaps': sitemaps}), path(r'essays/', include('blog.urls')), + path(r'tutorials/', include('tutorials.urls')), path(r'linked/', include('links.urls')), + path(r'comments/', include('django_comments.urls')), path(r'<slug>', PageDetailView.as_view()), path(r'<path>/<slug>/', PageDetailView.as_view()), path(r'', HomePageView.as_view()), |