diff options
Diffstat (limited to 'config/base_urls.py')
-rw-r--r-- | config/base_urls.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/config/base_urls.py b/config/base_urls.py index ed7da2d..cbc9517 100644 --- a/config/base_urls.py +++ b/config/base_urls.py @@ -4,7 +4,8 @@ from django.conf.urls.static import static from django.conf import settings from django.contrib.sitemaps.views import sitemap -from pages.views import PageDetailView, HomePageDetailView +from pages.views import PageDetailView +from blog.views import HomePageView #import builder.views import utils.views import builder.views @@ -18,9 +19,11 @@ urlpatterns = [ path(r'admin/', admin.site.urls), #path(r'luximages/insert/', utils.views.insert_image), #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()), path(r'<path>/<slug>/', PageDetailView.as_view()), - path(r'', HomePageDetailView.as_view()), + path(r'', HomePageView.as_view()), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) |