From 43248bb7e7134c432a16ad624d63ae254c0a65ea Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 26 May 2024 17:05:35 +0100 Subject: Changes title of the admin --- config/urls.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'config') 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 -- cgit v1.2.3