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