Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Koehler
rdmo-docker-compose
Commits
e804a7c2
Commit
e804a7c2
authored
Oct 22, 2019
by
olaf michaelis
Browse files
Add block to catch exception if base_url is not set in env config
parent
083faced
Changes
1
Hide whitespace changes
Inline
Side-by-side
rdmo/rootfs/tmp/template_local.py
View file @
e804a7c2
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment