Skip to content

Commit

Permalink
Add whitenoise
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgleason committed Jul 26, 2023
1 parent ce6c423 commit f6897e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ COPY . /app
EXPOSE 8000
ENV PORT=8000

RUN SECRET_KEY=1 python manage.py collectstatic --no-input
CMD gunicorn --reload --bind 0.0.0.0:${PORT:-8000} QI.wsgi:application
1 change: 1 addition & 0 deletions QI/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@

MIDDLEWARE = (
'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ six==1.11.0
tablib==0.12.1
unicodecsv==0.14.1
urllib3==1.23
whitenoise==4.1.4
xlrd==1.1.0
xlwt==1.3.0

0 comments on commit f6897e8

Please sign in to comment.