Skip to content

Commit

Permalink
feat: use whitenoise for static files
Browse files Browse the repository at this point in the history
  • Loading branch information
tymees committed Sep 4, 2024
1 parent 17fc84e commit 6f8757d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
3 changes: 2 additions & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ django-simple-menu
django-debug-toolbar
django-csp
django-extensions
whitenoise
djangosaml2idp
pip-tools
cdh-django-core[core] @ git+https://github.com/DH-IT-Portal-Development/django-shared-core.git@v3.1.0-alpha-1
cdh-django-core[core] @ git+https://github.com/DH-IT-Portal-Development/django-shared-core.git@v3.1.0-alpha-1
20 changes: 5 additions & 15 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This file is autogenerated by pip-compile with python 3.9
# To update, run:
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile
#
Expand All @@ -10,7 +10,7 @@ asgiref==3.8.1
# via django
build==1.2.1
# via pip-tools
cdh-django-core @ git+https://github.com/DH-IT-Portal-Development/django-shared-core.git@v3.1.0-alpha-1
cdh-django-core[core] @ git+https://github.com/DH-IT-Portal-Development/django-shared-core.git@v3.1.0-alpha-1
# via -r requirements.in
certifi==2024.7.4
# via requests
Expand Down Expand Up @@ -69,8 +69,6 @@ elementpath==4.4.0
# via xmlschema
idna==3.7
# via requests
importlib-metadata==8.2.0
# via build
packaging==24.1
# via build
pip-tools==7.4.1
Expand Down Expand Up @@ -101,26 +99,18 @@ sqlparse==0.5.1
# via
# django
# django-debug-toolbar
tomli==2.0.1
# via
# build
# pip-tools
types-python-dateutil==2.9.0.20240316
# via arrow
typing-extensions==4.12.2
# via
# asgiref
# django-modeltranslation
urllib3==2.2.2
# via requests
wheel==0.44.0
# via pip-tools
whitenoise==6.7.0
# via -r requirements.in
wrapt==1.16.0
# via deprecated
xmlschema==2.5.1
# via pysaml2
zipp==3.19.2
# via importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
# pip
Expand Down
1 change: 1 addition & 0 deletions testidp/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@

MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
"whitenoise.middleware.WhiteNoiseMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.locale.LocaleMiddleware",
"django.middleware.common.CommonMiddleware",
Expand Down

0 comments on commit 6f8757d

Please sign in to comment.