Created
October 2, 2012 11:01
-
-
Save tarekziade/3818180 to your computer and use it in GitHub Desktop.
settings file for mkt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mkt.settings import * | |
DEBUG = True | |
TEMPLATE_DEBUG = DEBUG | |
DEBUG_PROPAGATE_EXCEPTIONS = DEBUG | |
LESS_PREPROCESS = LESS_LIVE_REFRESH = True | |
LESS_BIN = '/usr/local/bin/lessc' | |
UGLIFY_BIN = 'uglifyjs' | |
SERVE_TMP_PATH = True | |
CELERY_ALWAYS_EAGER = True | |
RUN_ES_TESTS = True | |
RAISE_ON_SIGNAL_ERROR = True | |
#TEST_RUNNER = 'test_utils.mrunner.DjangoParallelTestSuiteRunner' | |
AUTHENTICATION_BACKENDS = ( | |
'django_browserid.auth.BrowserIDBackend', | |
'users.backends.AmoUserBackend', | |
'cake.backends.SessionBackend', | |
) | |
AUTH_PROFILE_MODULE = 'users.UserProfile' | |
# | |
# These apps are great during development. | |
INSTALLED_APPS += ( | |
'debug_toolbar', | |
'django_extensions', | |
'fixture_magic', | |
'django_qunit', | |
) | |
CACHES = { | |
'default': { | |
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', | |
'LOCATION': 'zamboni', | |
} | |
} | |
DATABASES = { | |
'default': { | |
'NAME': 'marketplace', | |
'ENGINE': 'django.db.backends.mysql', | |
'USER': 'marketplace', | |
'PASSWORD': 'marketplace', | |
'OPTIONS': {'init_command': 'SET storage_engine=InnoDB'}, | |
'TEST_CHARSET': 'utf8', | |
'TEST_COLLATION': 'utf8_general_ci', | |
}, | |
} | |
# Skip indexing ES to speed things up? | |
SKIP_SEARCH_INDEX = False | |
LOG_LEVEL = logging.DEBUG | |
HAS_SYSLOG = False | |
# For debug toolbar. | |
if DEBUG: | |
INTERNAL_IPS = ('127.0.0.1',) | |
MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',) | |
DEBUG_TOOLBAR_CONFIG = { | |
'HIDE_DJANGO_SQL': False, | |
'INTERCEPT_REDIRECTS': False, | |
} | |
SESSION_COOKIE_SECURE = False | |
SESSION_COOKIE_DOMAIN = None | |
CELERY_ALWAYS_EAGER = True | |
CELERY_ROUTES = {} | |
STATIC_URL = '' | |
VALIDATOR_TIMEOUT = -1 | |
WEBAPPS_RECEIPT_KEY = os.path.join(ROOT, 'mkt/webapps/tests/sample.key') | |
SITE_URL_OVERRIDE = SITE_URL = STATIC_URL = 'http://addons.mozilla.dev' | |
BROWSERID_CREATE_USER = True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment