From 1217e7ddb83269ad4932c0d9845d848c1a8a9b4e Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Mon, 18 Sep 2017 11:30:26 -0400 Subject: [PATCH] What the shitting shit. --- settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/settings.py b/settings.py index 39d0af2..652db0e 100644 --- a/settings.py +++ b/settings.py @@ -9,7 +9,9 @@ if 'DATABASE_URL' in os.environ: if 'SEARCHBOX_SSL_URL' in os.environ: - es = urllib.parse(os.environ.get('SEARCHBOX_SSL_URL')) + url = os.environ.get('SEARCHBOX_SSL_URL') + + es = urllib.parse(url) HAYSTACK_CONNECTIONS = { 'default': {