From 213ac837c03049f290b7f0035659641f9fa3411a Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Sat, 30 Mar 2019 23:43:19 +0100 Subject: [PATCH] Admin site title. --- src/cas/settings.py | 2 ++ src/cas/urls.py | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cas/settings.py b/src/cas/settings.py index ac904f3..f003ca4 100644 --- a/src/cas/settings.py +++ b/src/cas/settings.py @@ -118,6 +118,8 @@ SESSION_COOKIE_NAME = 'fnpcas' GRAVATAR_DEFAULT_IMAGE = 'mm' GRAVATAR_URL_PREFIX = 'https://www.gravatar.com/' +SITE_TITLE = 'Fundacja Nowoczesna Polska' + # Import localsettings file, which may override settings defined here try: from .localsettings import * diff --git a/src/cas/urls.py b/src/cas/urls.py index abe01e8..f3785ac 100644 --- a/src/cas/urls.py +++ b/src/cas/urls.py @@ -3,7 +3,9 @@ from django.views.generic import RedirectView from django.contrib import admin from django.conf import settings -admin.autodiscover() + +admin.site.site_header = settings.SITE_TITLE + urlpatterns = [ path('', RedirectView.as_view(url='/accounts/', permanent=False)), -- 2.20.1