From cb48e76ce2e1b78e8983a92cf5c85b5c4a953c7e Mon Sep 17 00:00:00 2001 From: lxf Date: Sun, 15 May 2022 09:28:50 -0400 Subject: page: change homepage to be static and rely on template --- config/base_urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/base_urls.py') diff --git a/config/base_urls.py b/config/base_urls.py index 7bc3431..d306d44 100644 --- a/config/base_urls.py +++ b/config/base_urls.py @@ -5,7 +5,7 @@ from django.contrib import admin from django.contrib.sitemaps.views import sitemap from django.views.generic.base import RedirectView -from pages.views import PageDetailView, PageDetailTXTView, HomePageList +from pages.views import PageDetailView, PageDetailTXTView, HomePageView from posts.models import PostSitemap from pages.models import PageSitemap import builder.views @@ -35,7 +35,7 @@ urlpatterns = [ path(r'.txt', PageDetailTXTView.as_view()), path(r'', include('pages.urls', namespace='pages')), path(r'//', PageDetailView.as_view()), - path(r'', HomePageList.as_view(), {'pk':1,}, name="homepage"), + path(r'', HomePageView.as_view(), {'pk':1,}, name="homepage"), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) -- cgit v1.2.3-70-g09d2