From 63bc263cdf9a5b6daf6918b02771066f6bb378b7 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Wed, 13 Sep 2023 09:30:14 +0100 Subject: [PATCH] feat: no whitenoise compression (#17367) --- posthog/settings/web.py | 2 +- requirements.in | 4 ++-- requirements.txt | 6 ++++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/posthog/settings/web.py b/posthog/settings/web.py index 9f61e9ee11e82..ca0c035765a7e 100644 --- a/posthog/settings/web.py +++ b/posthog/settings/web.py @@ -219,7 +219,7 @@ STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles") STATIC_URL = "/static/" STATICFILES_DIRS = [os.path.join(BASE_DIR, "frontend/dist"), os.path.join(BASE_DIR, "posthog/year_in_posthog/images")] -STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage" +STATICFILES_STORAGE = "whitenoise.storage.ManifestStaticFilesStorage" AUTH_USER_MODEL = "posthog.User" diff --git a/requirements.in b/requirements.in index 0fecfd58aad1f..0657d57392b54 100644 --- a/requirements.in +++ b/requirements.in @@ -9,7 +9,7 @@ antlr4-python3-runtime==4.13.0 amqp==2.6.0 boto3==1.26.66 boto3-stubs[s3] -brotli==1.0.9 +brotli==1.1.0 celery==4.4.7 celery-redbeat==2.0.0 clickhouse-driver==0.2.4 @@ -78,7 +78,7 @@ temporalio==1.1.0 token-bucket==0.3.0 toronado==0.1.0 webdriver_manager==3.8.5 -whitenoise==5.2.0 +whitenoise==6.5.0 mimesis==5.2.1 more-itertools==9.0.0 django-two-factor-auth==1.14.0 diff --git a/requirements.txt b/requirements.txt index 972c09cea5b08..2190093813d3c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -51,8 +51,10 @@ botocore==1.29.66 # s3transfer botocore-stubs==1.29.130 # via boto3-stubs -brotli==1.0.9 +brotli==1.1.0 # via -r requirements.in +cachetools==5.3.1 + # via google-auth celery==4.4.7 # via # -r requirements.in @@ -507,7 +509,7 @@ vine==1.3.0 # celery webdriver-manager==3.8.5 # via -r requirements.in -whitenoise==5.2.0 +whitenoise==6.5.0 # via -r requirements.in wsproto==1.1.0 # via trio-websocket