aboutsummaryrefslogtreecommitdiffstats
path: root/config/urls.py
diff options
context:
space:
mode:
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"),