Commit 838f4df6 by David Baumgold

Merge pull request #1269 from edx/db/clarify-debug

Clarify USE_I18N settings
parents d42a3507 cbaa3089
...@@ -82,6 +82,11 @@ DATABASES = { ...@@ -82,6 +82,11 @@ DATABASES = {
# Use the auto_auth workflow for creating users and logging them in # Use the auto_auth workflow for creating users and logging them in
MITX_FEATURES['AUTOMATIC_AUTH_FOR_TESTING'] = True MITX_FEATURES['AUTOMATIC_AUTH_FOR_TESTING'] = True
# HACK
# Setting this flag to false causes imports to not load correctly in the lettuce python files
# We do not yet understand why this occurs. Setting this to true is a stopgap measure
USE_I18N = True
# Include the lettuce app for acceptance testing, including the 'harvest' django-admin command # Include the lettuce app for acceptance testing, including the 'harvest' django-admin command
INSTALLED_APPS += ('lettuce.django',) INSTALLED_APPS += ('lettuce.django',)
LETTUCE_APPS = ('contentstore',) LETTUCE_APPS = ('contentstore',)
......
...@@ -218,10 +218,12 @@ STATICFILES_DIRS = [ ...@@ -218,10 +218,12 @@ STATICFILES_DIRS = [
TIME_ZONE = 'America/New_York' # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name TIME_ZONE = 'America/New_York' # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
LANGUAGE_CODE = 'en' # http://www.i18nguy.com/unicode/language-identifiers.html LANGUAGE_CODE = 'en' # http://www.i18nguy.com/unicode/language-identifiers.html
# We want i18n to be turned off in production, at least until we have full # We want i18n to be turned off in production, at least until we have full localizations.
# localizations. It's disconcerting for everything on the page to be in English # Thus we want the Django translation engine to be disabled. Otherwise even without
# except for one or two strings like "login" which are correctly localized. # localization files, if the user's browser is set to a language other than us-en,
USE_I18N = DEBUG # strings like "login" and "password" will be translated and the rest of the page will be
# in English, which is confusing.
USE_I18N = False
USE_L10N = True USE_L10N = True
# Localization strings (e.g. django.po) are under this directory # Localization strings (e.g. django.po) are under this directory
......
...@@ -9,6 +9,7 @@ from .common import * ...@@ -9,6 +9,7 @@ from .common import *
from logsettings import get_logger_config from logsettings import get_logger_config
DEBUG = True DEBUG = True
USE_I18N = True
TEMPLATE_DEBUG = DEBUG TEMPLATE_DEBUG = DEBUG
LOGGING = get_logger_config(ENV_ROOT / "log", LOGGING = get_logger_config(ENV_ROOT / "log",
logging_env="dev", logging_env="dev",
......
...@@ -109,6 +109,11 @@ CC_PROCESSOR['CyberSource']['MERCHANT_ID'] = "edx" ...@@ -109,6 +109,11 @@ CC_PROCESSOR['CyberSource']['MERCHANT_ID'] = "edx"
CC_PROCESSOR['CyberSource']['SERIAL_NUMBER'] = "0123456789012345678901" CC_PROCESSOR['CyberSource']['SERIAL_NUMBER'] = "0123456789012345678901"
CC_PROCESSOR['CyberSource']['PURCHASE_ENDPOINT'] = "/shoppingcart/payment_fake" CC_PROCESSOR['CyberSource']['PURCHASE_ENDPOINT'] = "/shoppingcart/payment_fake"
# HACK
# Setting this flag to false causes imports to not load correctly in the lettuce python files
# We do not yet understand why this occurs. Setting this to true is a stopgap measure
USE_I18N = True
MITX_FEATURES['ENABLE_FEEDBACK_SUBMISSION'] = True MITX_FEATURES['ENABLE_FEEDBACK_SUBMISSION'] = True
FEEDBACK_SUBMISSION_EMAIL = 'dummy@example.com' FEEDBACK_SUBMISSION_EMAIL = 'dummy@example.com'
......
...@@ -455,10 +455,12 @@ FAVICON_PATH = 'images/favicon.ico' ...@@ -455,10 +455,12 @@ FAVICON_PATH = 'images/favicon.ico'
TIME_ZONE = 'America/New_York' # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name TIME_ZONE = 'America/New_York' # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
LANGUAGE_CODE = 'en' # http://www.i18nguy.com/unicode/language-identifiers.html LANGUAGE_CODE = 'en' # http://www.i18nguy.com/unicode/language-identifiers.html
# We want i18n to be turned off in production, at least until we have full # We want i18n to be turned off in production, at least until we have full localizations.
# localizations. It's disconcerting for everything on the page to be in English # Thus we want the Django translation engine to be disabled. Otherwise even without
# except for one or two strings like "login" which are correctly localized. # localization files, if the user's browser is set to a language other than us-en,
USE_I18N = DEBUG # strings like "login" and "password" will be translated and the rest of the page will be
# in English, which is confusing.
USE_I18N = False
USE_L10N = True USE_L10N = True
# Localization strings (e.g. django.po) are under this directory # Localization strings (e.g. django.po) are under this directory
......
...@@ -16,6 +16,7 @@ from .common import * ...@@ -16,6 +16,7 @@ from .common import *
from logsettings import get_logger_config from logsettings import get_logger_config
DEBUG = True DEBUG = True
USE_I18N = True
TEMPLATE_DEBUG = True TEMPLATE_DEBUG = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment