Commit 3258132e authored by Olaf Michaelis's avatar Olaf Michaelis
Browse files

Revert back to old wsgi.py because sanitizer moved to rdmo core

parent 8afb7b80
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()
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