Skip to content

Commit

Permalink
Add testsettings for collectstatic
Browse files Browse the repository at this point in the history
  • Loading branch information
erikh360 committed Oct 10, 2023
1 parent 89b7809 commit 1e92a32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ghcr.io/praekeltfoundation/docker-django-bootstrap-nw:py3.9-bullseye
COPY . /app
RUN pip install -e .

RUN python manage.py collectstatic --noinput
RUN DJANGO_SETTINGS_MODULE=flow_results.testsettings python manage.py collectstatic --noinput
ENV DJANGO_SETTINGS_MODULE flow_results.settings
ENV DEBUG false

Expand Down
3 changes: 3 additions & 0 deletions flow_results/testsettings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from flow_results.settings import *

PROMETHEUS_EXPORT_MIGRATIONS = False

0 comments on commit 1e92a32

Please sign in to comment.