From 0afc53a6d77110dce3f5353c20c42961da8bd2a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 26 May 2022 15:44:30 +0200 Subject: [PATCH] general: do not preload package versions (#65722) --- combo/wsgi.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/combo/wsgi.py b/combo/wsgi.py index 88a3dad5..2f794803 100644 --- a/combo/wsgi.py +++ b/combo/wsgi.py @@ -9,16 +9,8 @@ https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/ import os -from django.conf import settings from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "combo.settings") application = get_wsgi_application() -if 'hobo.context_processors.statics_hash' in settings.TEMPLATES[0]['OPTIONS']['context_processors']: - # initialize versions as soon as possible as it may be used in most - # requests via the statics_hash template var and we prefer not to - # load the information during a user request. - from hobo.scrutiny.wsgi.middleware import VersionMiddleware # pylint: disable=import-error - - VersionMiddleware.get_packages_version()