aboutsummaryrefslogtreecommitdiffstats
path: root/config/urls.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-09-13 12:59:22 +0100
committerMatthew Lemon <y@yulqen.org>2024-09-13 12:59:22 +0100
commitdba3d4d65657e8ccefe35e026e7f64b96f255101 (patch)
tree050363d6ab7a2e63a2ef86424f38bd77e6e90a45 /config/urls.py
parent4ca6fec0d16e33880456d324b581653c30b642ae (diff)
Wraps login required for home page
Diffstat (limited to 'config/urls.py')
-rw-r--r--config/urls.py3
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"),