From 72e06e2c26709c4cfd126a07ff2ad260c60164a3 Mon Sep 17 00:00:00 2001 From: HipsterCat Date: Thu, 25 Oct 2018 01:29:30 +0200 Subject: [PATCH] Removed port from base_url --- web/context_processor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/context_processor.py b/web/context_processor.py index 6e3e16b..595d86a 100644 --- a/web/context_processor.py +++ b/web/context_processor.py @@ -6,4 +6,6 @@ def BASE_URL(request): scheme = 'https://' else: scheme = 'http://' - return {'BASE_URL': scheme + request.get_host(), } \ No newline at end of file + fullhost = request.get_host() + base = fullhost.split(":")[0] + return {'BASE_URL': scheme + base, } \ No newline at end of file