From 9dbdad51903613b15a370d5f0af762fa851e1065 Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Fri, 11 Oct 2024 01:57:04 -0300 Subject: [PATCH] build: compilemessages at build --- app/WYGIWYH/settings.py | 2 ++ docker/prod/django/Dockerfile | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/WYGIWYH/settings.py b/app/WYGIWYH/settings.py index 2b23740..141abba 100644 --- a/app/WYGIWYH/settings.py +++ b/app/WYGIWYH/settings.py @@ -164,6 +164,8 @@ USE_I18N = True USE_TZ = True +LOCALE_PATHS = [BASE_DIR / "locale"] + # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/5.1/howto/static-files/ diff --git a/docker/prod/django/Dockerfile b/docker/prod/django/Dockerfile index 69dbfdf..2a14e2b 100644 --- a/docker/prod/django/Dockerfile +++ b/docker/prod/django/Dockerfile @@ -75,3 +75,5 @@ RUN chown -R app:app /temp # change to the app user USER app + +RUN python manage.py compilemessages --settings "WYGIWYH.settings"