From a72d88771fd6c21b9067a72d25d8a82fb0c6ee68 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Thu, 15 Apr 2021 21:35:42 +0200 Subject: [PATCH] Add gzip middleware --- blog/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/blog/settings.py b/blog/settings.py index 8d2faeb..870c332 100644 --- a/blog/settings.py +++ b/blog/settings.py @@ -76,6 +76,7 @@ INSTALLED_APPS = [ MIDDLEWARE = [ "django.middleware.security.SecurityMiddleware", "whitenoise.middleware.WhiteNoiseMiddleware", + "django.middleware.gzip.GZipMiddleware", "debug_toolbar.middleware.DebugToolbarMiddleware", "django.contrib.sessions.middleware.SessionMiddleware", "django.middleware.common.CommonMiddleware",