Features: 1) Add dynamic BASE_DOMAIN-based URL for EXTRA_STYLES in DAISY_SETTINGS;
Fixes: None; Extra: 1) Add missing import for CONSTANCE_CONFIG in daisy.py;
This commit is contained in:
parent
b96ad5aa80
commit
400d198afc
1 changed files with 3 additions and 1 deletions
|
|
@ -1,9 +1,11 @@
|
||||||
from django.utils.translation import gettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
|
||||||
|
from evibes.settings import CONSTANCE_CONFIG
|
||||||
|
|
||||||
DAISY_SETTINGS: dict = {
|
DAISY_SETTINGS: dict = {
|
||||||
"SITE_LOGO": "/static/favicon.ico",
|
"SITE_LOGO": "/static/favicon.ico",
|
||||||
"EXTRA_STYLES": [
|
"EXTRA_STYLES": [
|
||||||
"core/css/constance.css",
|
f"https://api.{CONSTANCE_CONFIG.get('BASE_DOMAIN')[0]}/static/core/css/constance.css",
|
||||||
],
|
],
|
||||||
"EXTRA_SCRIPTS": [],
|
"EXTRA_SCRIPTS": [],
|
||||||
"SHOW_CHANGELIST_FILTER": True,
|
"SHOW_CHANGELIST_FILTER": True,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue