diff --git a/app/boot.py b/app/boot.py index 0f7f9d90..dee6752d 100644 --- a/app/boot.py +++ b/app/boot.py @@ -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, diff --git a/webodm/settings.py b/webodm/settings.py index c15fe97d..066a1b5b 100644 --- a/webodm/settings.py +++ b/webodm/settings.py @@ -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 = [