From 1c0d41f0a8a2830f45a1e57d23a8bbaabecedfa1 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Fri, 9 Dec 2022 08:11:30 +0100 Subject: [PATCH 1/4] Add capability to create files - this is required to allow compilemessages for local development on Linux --- docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 28689786..5a398a23 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -47,6 +47,8 @@ services: - /tmp cap_drop: - ALL + cap_add: + - CAP_DAC_OVERRIDE depends_on: - db From 4733370ef13dd29e7d32a3ed9b694d0fafa0ee63 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Wed, 12 Oct 2022 13:44:52 +0200 Subject: [PATCH 2/4] Use APP_DIRS to fix debug-toolbar warning --- devday/devday/settings/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/devday/devday/settings/__init__.py b/devday/devday/settings/__init__.py index 00830411..c483979c 100644 --- a/devday/devday/settings/__init__.py +++ b/devday/devday/settings/__init__.py @@ -329,11 +329,8 @@ def split_list(value: str): "talk.context_processors.reservation_context_processor", "event.contextprocessors.current_event_contextprocessor", ], - "loaders": [ - "django.template.loaders.filesystem.Loader", - "django.template.loaders.app_directories.Loader", - ], }, + "APP_DIRS": True, } ] THUMBNAIL_HIGH_RESOLUTION = True From 3f77d853a99a540d066db53144c069805f64cc90 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Fri, 9 Dec 2022 08:28:17 +0100 Subject: [PATCH 3/4] Move settings/__init__.py to settings.py This is a cleanup after unification of settings in a previous change. --- devday/devday/{settings/__init__.py => settings.py} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename devday/devday/{settings/__init__.py => settings.py} (99%) diff --git a/devday/devday/settings/__init__.py b/devday/devday/settings.py similarity index 99% rename from devday/devday/settings/__init__.py rename to devday/devday/settings.py index c483979c..bcfee75e 100644 --- a/devday/devday/settings/__init__.py +++ b/devday/devday/settings.py @@ -127,7 +127,7 @@ def split_list(value: str): }, ] -BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) DEFAULT_AUTO_FIELD = "django.db.models.AutoField" From c6282e42016ee5e011a7371c5a238dd779503dc0 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Fri, 9 Dec 2022 08:39:19 +0100 Subject: [PATCH 4/4] Use bootstrap4 to fix broken form rendering Change the crispy forms template pack to boostrap4. We introduced bootstrap 4 in 705a871e --- devday/devday/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devday/devday/settings.py b/devday/devday/settings.py index bcfee75e..d25a6442 100644 --- a/devday/devday/settings.py +++ b/devday/devday/settings.py @@ -174,7 +174,7 @@ def split_list(value: str): ), ) CMS_PERMISSION = True -CRISPY_TEMPLATE_PACK = "bootstrap3" +CRISPY_TEMPLATE_PACK = "bootstrap4" DATA_DIR = os.path.dirname(os.path.dirname(os.path.dirname(__file__))) DATABASES = {