Skip to content

Commit

Permalink
Merge pull request #37 from City-of-Helsinki/whitenoise
Browse files Browse the repository at this point in the history
Add whitenoise for static files
  • Loading branch information
aapris authored Oct 16, 2023
2 parents 592d6be + e5e9c93 commit ee35ca4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions deviceregistry/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@

MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
"whitenoise.middleware.WhiteNoiseMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ dependencies = [
"pytest-django",
"sqlparse",
"unittest-parametrize",
"whitenoise < 7"
]

[tool.black]
Expand Down
6 changes: 4 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ openpyxl==3.1.2
# via mittaridatapumppu-deviceregistry (pyproject.toml)
packaging==23.2
# via pytest
pillow==10.0.1
pillow==10.1.0
# via mittaridatapumppu-deviceregistry (pyproject.toml)
pluggy==1.3.0
# via pytest
Expand All @@ -49,5 +49,7 @@ sqlparse==0.4.4
# via
# django
# mittaridatapumppu-deviceregistry (pyproject.toml)
unittest-parametrize==1.3.0
unittest-parametrize==1.4.0
# via mittaridatapumppu-deviceregistry (pyproject.toml)
whitenoise==6.6.0
# via mittaridatapumppu-deviceregistry (pyproject.toml)

0 comments on commit ee35ca4

Please sign in to comment.