Skip to content

Commit

Permalink
whitenoise
Browse files Browse the repository at this point in the history
  • Loading branch information
qtrinh2 committed Nov 18, 2024
1 parent 269e8c7 commit 5607ed3
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions django/django_test/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
"whitenoise.middleware.WhiteNoiseMiddleware",
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
Expand Down
2 changes: 1 addition & 1 deletion django/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
build: .
image: rrchnm/cicd-testing-django
environment:
- DEBUG=True
- DEBUG=False
- DJANGO_SECRET_KEY=thisisnotasecretkey
- DJANGO_ALLOWED_HOSTS=localhost
- DJANGO_CSRF_TRUSTED_ORIGINS=http://localhost
Expand Down
16 changes: 15 additions & 1 deletion django/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions django/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ django-tailwind = "^3.8.0"
boto3 = "^1.34.137"
django-storages = "^1.14.3"
daphne = "^4.1.2"
whitenoise = "^6.8.2"


[build-system]
Expand Down

0 comments on commit 5607ed3

Please sign in to comment.