2021-10-22 15:09:44 +03:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
2019-05-02 21:32:00 +03:00
|
|
|
import os
|
|
|
|
|
2016-03-22 23:41:04 +03:00
|
|
|
from django.core.wsgi import get_wsgi_application
|
2017-07-20 06:48:42 +03:00
|
|
|
|
2024-02-28 20:18:39 +03:00
|
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bedrock.settings")
|
|
|
|
django_application = get_wsgi_application()
|
2017-05-04 21:23:54 +03:00
|
|
|
|
|
|
|
|
2024-02-28 20:18:39 +03:00
|
|
|
# Always generate https URLs.
|
|
|
|
def https_application(environ, start_response):
|
|
|
|
environ["wsgi.url_scheme"] = "https"
|
|
|
|
return django_application(environ, start_response)
|
2017-05-04 21:23:54 +03:00
|
|
|
|
2020-07-06 22:17:51 +03:00
|
|
|
|
2024-02-28 20:18:39 +03:00
|
|
|
application = https_application
|