diff options
Diffstat (limited to 'config/base_urls.py')
-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()), |