Skip to content
GitLab
Menu
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
3258132e
Commit
3258132e
authored
Oct 17, 2019
by
Olaf Michaelis
Browse files
Revert back to old wsgi.py because sanitizer moved to rdmo core
parent
8afb7b80
Changes
1
Hide whitespace changes
Inline
Side-by-side
rdmo/rootfs/tmp/wsgi.py
View file @
3258132e
import
os
import
re
from
django.core.wsgi
import
get_wsgi_application
os
.
environ
.
setdefault
(
'DJANGO_SETTINGS_MODULE'
,
'config.settings'
)
try
:
os
.
environ
[
'BASE_URL'
]
except
KeyError
:
pass
else
:
if
bool
(
re
.
search
(
'[a-z0-9]'
,
os
.
environ
[
'BASE_URL'
]))
is
False
:
os
.
environ
[
'BASE_URL'
]
=
''
application
=
get_wsgi_application
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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