From 9ee5ecce954241a8859dfbfafd7648eb3c5a05c9 Mon Sep 17 00:00:00 2001 From: J-E Castagnede Date: Mon, 25 Nov 2024 12:59:28 +0100 Subject: [PATCH] fix constance imort --- project/accounts/admin.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/project/accounts/admin.py b/project/accounts/admin.py index c617bd28..29f345ad 100644 --- a/project/accounts/admin.py +++ b/project/accounts/admin.py @@ -1,13 +1,12 @@ -from constance import config from django.contrib import admin from django.utils.translation import gettext_lazy as _ from project.accounts.models import FunctionalPermission, PermanentAccessToken, User from project.admin import config_site -admin.site.index_title = f'{config.INSTANCE_TITLE}: {_("Debug panel")}' -admin.site.site_header = f'{config.INSTANCE_TITLE}: {_("Debug panel")}' -admin.site.index_title = _(f"Welcome to {config.INSTANCE_TITLE} debug interface.") +admin.site.index_title = f'TerraVisu: {_("Debug panel")}' +admin.site.site_header = f'TerraVisu: {_("Debug panel")}' +admin.site.index_title = _("Welcome to TerraVisu debug interface.") admin.site.register(User)