Skip to content

Commit

Permalink
Use whitenoise to serve static files
Browse files Browse the repository at this point in the history
  • Loading branch information
jodal committed Dec 28, 2024
1 parent e1f75f6 commit b5a4ff6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ dependencies = [
"lxml>=5.3.0",
"pillow>=11.0.0",
"sentry-sdk>=2.19.2",
"setuptools>=75.6.0", # Needed by django-bootstrap-form
"setuptools>=75.6.0", # Needed by django-bootstrap-form
"typenv>=0.2.0",
"whitenoise>=6.8.2",
]

[project.optional-dependencies]
Expand Down
1 change: 1 addition & 0 deletions src/comics/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
"django.middleware.security.SecurityMiddleware",
"django.middleware.http.ConditionalGetMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"whitenoise.middleware.WhiteNoiseMiddlware",
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
Expand Down
11 changes: 11 additions & 0 deletions uv.lock

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

0 comments on commit b5a4ff6

Please sign in to comment.