Configuration
superapp/apps/admin_portal/settings.py
from django.templatetags.static import static
from django.utils.translation import gettext_lazy as _
def extend_superapp_settings(main_settings):
main_settings['INSTALLED_APPS'] += [
'superapp.apps.admin_portal',
]
original_unfold_settings = main_settings.get('UNFOLD', {})
main_settings['UNFOLD'] = {
"SITE_HEADER": _("SuperApp Demo"),
"SITE_TITLE": _("SuperApp Demo"),
"SITE_SYMBOL": "settings",
"SHOW_HISTORY": False,
"SITE_LOGO": {
"light": lambda request: static("images/logo-light.svg"), # light mode
"dark": lambda request: static("images/logo-dark.svg"), # dark mode
},
"COLORS": {
"primary": {
'50': '#eef2ff',
'100': '#e0e7ff',
'200': '#c7d2fe',
'300': '#a5b4fc',
'400': '#818cf8',
'500': '#6366f1',
'600': '#4f46e5',
'700': '#4338ca',
'800': '#3730a3',
'900': '#312e81',
'950': '#1e1b4b',
},
},
"LOGIN": {
# "image": lambda request: static("images/login-bg.jpg"),
},
"STYLES": original_unfold_settings.get('STYLES', []) + [
# The below resource is generated by ./tailwind.config.js
lambda request: static("css/styles.css"),
],
"SCRIPTS": original_unfold_settings.get('SCRIPTS', []) + [
# Add your custom scripts here
],
"TABS": [],
"SIDEBAR": {},
}