Removed port from base_url

This commit is contained in:
Amazed 2018-10-25 01:29:30 +02:00
parent a785baca79
commit 72e06e2c26

View File

@ -6,4 +6,6 @@ def BASE_URL(request):
scheme = 'https://' scheme = 'https://'
else: else:
scheme = 'http://' scheme = 'http://'
return {'BASE_URL': scheme + request.get_host(), } fullhost = request.get_host()
base = fullhost.split(":")[0]
return {'BASE_URL': scheme + base, }