176
176
# TODO(mrunge): remove after Icehouse
177
177
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer'
179
gettext_noop = lambda s: s
181
('en', gettext_noop('English')),
182
('en-au', gettext_noop('Australian English')),
183
('en-gb', gettext_noop('British English')),
184
('es', gettext_noop('Spanish')),
185
('fr', gettext_noop('French')),
186
('ja', gettext_noop('Japanese')),
187
('ko', gettext_noop('Korean (Korea)')),
188
('nl', gettext_noop('Dutch (Netherlands)')),
189
('pl', gettext_noop('Polish')),
190
('pt-br', gettext_noop('Portuguese (Brazil)')),
191
('zh-cn', gettext_noop('Simplified Chinese')),
181
('en-au', 'Australian English'),
182
('en-gb', 'British English'),
186
('ko', 'Korean (Korea)'),
187
('nl', 'Dutch (Netherlands)'),
189
('pt-br', 'Portuguese (Brazil)'),
190
('zh-cn', 'Simplified Chinese'),
193
192
LANGUAGE_CODE = 'en'
194
193
LANGUAGE_COOKIE_NAME = 'horizon_language'
252
251
logging.basicConfig(level=logging.DEBUG)
253
# during django reloads and an active user is logged in, the monkey
254
# patch below will not otherwise be applied in time - resulting in developers
255
# appearing to be logged out. In typical production deployments this section
256
# below may be ommited, though it should not be harmful
257
from openstack_auth import utils as auth_utils
258
auth_utils.patch_middleware_get_user()