Fix missing celery env variable when running compilemessages (#4403)

This commit is contained in:
Bruno Alla 2023-06-18 13:03:36 +01:00 committed by GitHub
parent 1e40d7908f
commit 7ad2e1fdae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,6 +122,9 @@ RUN chown django:django ${APP_HOME}
USER django
RUN DATABASE_URL="" \
{%- if cookiecutter.use_celery == "y" %}
CELERY_BROKER_URL="" \
{%- endif %}
DJANGO_SETTINGS_MODULE="config.settings.test" \
python manage.py compilemessages