general: do not preload package versions (#65722)
This commit is contained in:
parent
2248f16cc9
commit
0afc53a6d7
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue