From 88a6708061ccdc7d3ac4d031c48de44039937b54 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 17 May 2020 16:33:40 -0700 Subject: [PATCH] Replace werkzeug.contrib with werkzeug.middleware proxyfix. werkzeug.contrib has been deprecated, this is the new location of the proxyfix. --- frontends/etiquette_flask/etiquette_flask_entrypoint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontends/etiquette_flask/etiquette_flask_entrypoint.py b/frontends/etiquette_flask/etiquette_flask_entrypoint.py index a3c035d..d2159d8 100644 --- a/frontends/etiquette_flask/etiquette_flask_entrypoint.py +++ b/frontends/etiquette_flask/etiquette_flask_entrypoint.py @@ -4,10 +4,10 @@ This file is the WSGI entrypoint for remote / production use. If you are using Gunicorn, for example: gunicorn etiquette_flask_entrypoint:site --bind "0.0.0.0:PORT" --access-logfile "-" ''' -import werkzeug.contrib.fixers +import werkzeug.middleware.proxy_fix import backend -backend.site.wsgi_app = werkzeug.contrib.fixers.ProxyFix(backend.site.wsgi_app) +backend.site.wsgi_app = werkzeug.middleware.proxy_fix.ProxyFix(backend.site.wsgi_app) site = backend.site