diff options
author | Matthew Lemon <y@yulqen.org> | 2024-05-26 17:05:35 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-05-26 17:05:35 +0100 |
commit | 43248bb7e7134c432a16ad624d63ae254c0a65ea (patch) | |
tree | c9f3f3e4895659d7adf23d50040c9c7435179cdd /config | |
parent | 37698a2ebba6ea366b93f70f6ad87336b302b70c (diff) |
Changes title of the admin
Diffstat (limited to 'config')
-rw-r--r-- | config/urls.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/config/urls.py b/config/urls.py index 270a8ad..29c74a3 100644 --- a/config/urls.py +++ b/config/urls.py @@ -1,4 +1,5 @@ # ruff: noqa + from django.conf import settings from django.conf.urls.static import static from django.contrib import admin @@ -7,6 +8,11 @@ from django.urls import path from django.views import defaults as default_views from django.views.generic import TemplateView +import debug_toolbar + + +admin.site.site_header = "Blackbird Admin Panel" + urlpatterns = [ path("", TemplateView.as_view(template_name="pages/home.html"), name="home"), path( @@ -48,6 +54,5 @@ if settings.DEBUG: path("500/", default_views.server_error), ] if "debug_toolbar" in settings.INSTALLED_APPS: - import debug_toolbar urlpatterns = [path("__debug__/", include(debug_toolbar.urls))] + urlpatterns |