diff options
author | Matthew Lemon <y@yulqen.org> | 2024-09-13 12:59:22 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-09-13 12:59:22 +0100 |
commit | dba3d4d65657e8ccefe35e026e7f64b96f255101 (patch) | |
tree | 050363d6ab7a2e63a2ef86424f38bd77e6e90a45 /config/urls.py | |
parent | 4ca6fec0d16e33880456d324b581653c30b642ae (diff) |
Wraps login required for home page
Diffstat (limited to 'config/urls.py')
-rw-r--r-- | config/urls.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/urls.py b/config/urls.py index 5a6eeeb..c5db4dd 100644 --- a/config/urls.py +++ b/config/urls.py @@ -1,5 +1,6 @@ # ruff: noqa +from django.contrib.auth.decorators import login_required from django.conf import settings from django.conf.urls.static import static from django.contrib import admin @@ -14,7 +15,7 @@ from django.views.generic import TemplateView admin.site.site_header = "Blackbird Admin Panel" urlpatterns = [ - path("", TemplateView.as_view(template_name="pages/home.html"), name="home"), + path("", login_required(TemplateView.as_view(template_name="pages/home.html")), name="home"), path( "about/", TemplateView.as_view(template_name="pages/about.html"), |