Commit e804a7c2 authored by Olaf Michaelis's avatar Olaf Michaelis
Browse files

Add block to catch exception if base_url is not set in env config

parent 083faced
......@@ -25,7 +25,10 @@ ALLOWED_HOSTS = [x.strip() for x in os.environ['ALLOWED_HOSTS'].split(',')]
'''
The root url of your application, only needed when its not '/'
'''
BASE_URL = os.environ['BASE_URL']
try:
BASE_URL = os.environ['BASE_URL']
except KeyError:
BASE_URL = ''
'''
Language code and time zone
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment