Default theme CSS

pull/836/head
Piero Toffanin 2020-03-20 13:00:09 -04:00
rodzic 0c256afcbc
commit de2aafa670
2 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -71,6 +71,10 @@ def boot():
if created:
logger.info("Created default theme")
if settings.DEFAULT_THEME_CSS:
default_theme.css = settings.DEFAULT_THEME_CSS
default_theme.save()
if Setting.objects.all().count() == 0:
s = Setting.objects.create(
app_name=settings.APP_NAME,

Wyświetl plik

@ -67,6 +67,9 @@ SINGLE_USER_MODE = False
# URL to redirect to if there are no processing nodes when visiting the dashboard
PROCESSING_NODES_ONBOARDING = None
# Default CSS to add to theme
DEFAULT_THEME_CSS = ''
# Application definition
INSTALLED_APPS = [