зеркало из https://github.com/mozilla/kitsune.git
[bug 595370] Add the server name to the wsgi environment.
This commit is contained in:
Родитель
f415ad8ce4
Коммит
39ad6fefbb
|
@ -1,4 +1,5 @@
|
|||
# Django settings for kitsune project.
|
||||
import platform
|
||||
import os
|
||||
import logging
|
||||
|
||||
|
@ -46,6 +47,8 @@ SLAVE_DATABASES = []
|
|||
DEFAULT_FROM_EMAIL = 'notifications@support.mozilla.com'
|
||||
SERVER_EMAIL = 'server-error@support.mozilla.com'
|
||||
|
||||
PLATFORM_NAME = platform.node()
|
||||
|
||||
# Local time zone for this installation. Choices can be found here:
|
||||
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
|
||||
# although not all choices may be available on all operating systems.
|
||||
|
|
|
@ -34,6 +34,7 @@ def application(env, start_response):
|
|||
if 'HTTP_X_ZEUS_DL_PT' in env:
|
||||
env['SCRIPT_URL'] = env['SCRIPT_NAME'] = ''
|
||||
env['wsgi.loaded'] = wsgi_loaded
|
||||
env['platform.name'] = django.conf.settings.PLATFORM_NAME
|
||||
return django_app(env, start_response)
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче