From 6506c229deefafbcbbaf0e9ef454a3062c2eff25 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Fri, 2 Aug 2019 16:12:41 +0200 Subject: [PATCH] Fix site name --- med/settings.py | 2 -- med/templates/med/index.html | 2 +- templates/base.html | 10 ++++------ 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/med/settings.py b/med/settings.py index cc1a25f..840e291 100644 --- a/med/settings.py +++ b/med/settings.py @@ -175,8 +175,6 @@ PASSWORD_HASHERS = ( ) AUTH_USER_MODEL = 'users.User' -LOGIN_URL = '/login/' -LOGIN_REDIRECT_URL = '/' SITE_NAME = "Med" # Association information diff --git a/med/templates/med/index.html b/med/templates/med/index.html index 04001e9..03fca22 100644 --- a/med/templates/med/index.html +++ b/med/templates/med/index.html @@ -9,7 +9,7 @@ SPDX-License-Identifier: GPL-3.0-or-later {% block title %}Accueil{% endblock %} {% block content %} -

Bienvenue sur {{ site_name }}, notre base de données.

+

Bienvenue sur la base de données de la Mediatek.

Welcome to procrastination heaven !

diff --git a/templates/base.html b/templates/base.html index 93ca5f0..063e1f5 100644 --- a/templates/base.html +++ b/templates/base.html @@ -36,7 +36,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% bootstrap_javascript %} - {{ site_name }} : {% block title %}Accueil{% endblock %} + {{ request.site.name }} : {% block title %}Accueil{% endblock %} @@ -49,7 +49,7 @@ with this program; if not, write to the Free Software Foundation, Inc., - {{ site_name }} + {{ request.site.name }}

@@ -139,8 +137,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,