[bug 595370] Add the server name to the wsgi environment.

This commit is contained in:
James Socol 2010-09-10 18:58:44 -04:00
Родитель f415ad8ce4
Коммит 39ad6fefbb
2 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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)