diff --git a/Dockerfile b/Dockerfile index 6d42235..624a6f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,7 +26,8 @@ RUN apk update && apk add \ uwsgi-python3 \ git \ python3 \ - python3-dev + python3-dev \ + gettext # COPY requirements.txt and RUN pip install BEFORE adding the rest of your # code, this will cause Docker's caching mechanism to prevent re-installing diff --git a/manage.py b/manage.py index 620ae56..48cc715 100755 --- a/manage.py +++ b/manage.py @@ -7,7 +7,7 @@ from os import path if __name__ == '__main__': env_path = path.join(path.dirname(path.realpath(__file__)), '.env') if not os.path.exists(env_path) and len(sys.argv) >= 2 and len(sys.argv) <= 3 \ - and sys.argv[1] == 'collectstatic': + and (sys.argv[1] == 'collectstatic' or sys.argv[1] == 'compilemessages'): os.environ['POSTGRES_DB'] = '' os.environ['POSTGRES_HOST'] = '' os.environ['POSTGRES_USER'] = ''