From: Radek Czajka Date: Sat, 30 Mar 2019 22:43:19 +0000 (+0100) Subject: Admin site title. X-Git-Url: https://git.mdrn.pl/cas.git/commitdiff_plain/213ac837c03049f290b7f0035659641f9fa3411a Admin site title. --- 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)),