summaryrefslogtreecommitdiffstats
path: root/roles/ask/files/askbot.wsgi
blob: 7676891dfa039e38af5f0aefc0f72e44f96522ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/python
import os
import sys
sys.stdout = sys.stderr

os.environ['DJANGO_SETTINGS_MODULE'] = 'config.settings'

# Here we have to trick askbot into thinking its using ssl so it
# produces the correct URLs for openid/auth stuff (mostly for stg).
os.environ['HTTPS'] = "on"
def is_secure(self):
    return True
import django.core.handlers.wsgi
django.core.handlers.wsgi.WSGIRequest.is_secure = is_secure

application = django.core.handlers.wsgi.WSGIHandler()