2012-08-28 18:44:51 +02:00
|
|
|
# Django settings for humbug project.
|
2012-08-28 18:45:32 +02:00
|
|
|
import os
|
2012-09-17 23:30:29 +02:00
|
|
|
import platform
|
2012-08-28 18:44:51 +02:00
|
|
|
|
2012-12-11 22:07:57 +01:00
|
|
|
DEPLOYED = (('humbughq.com' in platform.node())
|
2012-10-27 17:11:30 +02:00
|
|
|
or os.path.exists('/etc/humbug-server'))
|
2012-12-12 23:07:37 +01:00
|
|
|
STAGING_DEPLOYED = (platform.node() == 'staging.humbughq.com')
|
2012-09-17 23:30:29 +02:00
|
|
|
|
2012-12-11 22:07:57 +01:00
|
|
|
DEBUG = not DEPLOYED
|
2012-08-28 18:44:51 +02:00
|
|
|
TEMPLATE_DEBUG = DEBUG
|
2013-01-11 21:16:42 +01:00
|
|
|
TEST_SUITE = False
|
2012-08-28 18:44:51 +02:00
|
|
|
|
2012-09-19 22:25:13 +02:00
|
|
|
if DEBUG:
|
|
|
|
INTERNAL_IPS = ('127.0.0.1',)
|
|
|
|
|
2012-08-28 18:44:51 +02:00
|
|
|
ADMINS = (
|
2012-11-02 20:45:51 +01:00
|
|
|
('Devel', 'devel@humbughq.com'),
|
2012-08-28 18:44:51 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
MANAGERS = ADMINS
|
|
|
|
|
|
|
|
DATABASES = {
|
|
|
|
'default': {
|
|
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
|
|
|
'NAME': 'zephyrdb',
|
|
|
|
'USER': '', # Not used with sqlite3.
|
|
|
|
'PASSWORD': '', # Not used with sqlite3.
|
|
|
|
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
|
|
|
|
'PORT': '', # Set to empty string for default. Not used with sqlite3.
|
2012-09-14 19:22:56 +02:00
|
|
|
'OPTIONS': {
|
|
|
|
'timeout': 20,
|
|
|
|
},
|
2012-09-14 19:17:26 +02:00
|
|
|
},
|
2012-09-14 22:29:53 +02:00
|
|
|
}
|
|
|
|
|
2012-12-15 14:42:12 +01:00
|
|
|
if DEPLOYED:
|
2012-12-12 23:07:37 +01:00
|
|
|
DATABASES["default"] = {
|
|
|
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
|
|
|
'NAME': 'humbug',
|
|
|
|
'USER': 'humbug',
|
2012-12-14 00:34:34 +01:00
|
|
|
'PASSWORD': '', # Authentication done via certificates
|
2012-12-12 23:07:37 +01:00
|
|
|
'HOST': '10.254.4.99',
|
2013-01-29 01:11:01 +01:00
|
|
|
'SCHEMA': 'humbug',
|
2012-12-12 23:07:37 +01:00
|
|
|
'OPTIONS': {
|
2012-12-14 00:34:34 +01:00
|
|
|
# Note that 'verify-ca' only checks that the server certificate was
|
|
|
|
# signed by a trusted root. You need 'verify-full' if you want to
|
|
|
|
# check that the server's hostname in the certificate matches the
|
|
|
|
# host you connect to.
|
|
|
|
#
|
|
|
|
# We don't currently do 'verify-full' because the web servers
|
|
|
|
# connect to the database using its AWS internal IP address, which
|
|
|
|
# doesn't reverse-resolve to its hostname. And because the
|
|
|
|
# database's certificate is for its hostname instead of its internal
|
|
|
|
# IP address, the frontend can't verify that the certificate is for
|
|
|
|
# the correct machine. This can be solved by running DNS
|
|
|
|
# internally. For now, 'verify-ca' is probably sufficient because
|
|
|
|
# the certificates are signed by our own CA.
|
|
|
|
'sslmode': 'verify-ca',
|
2012-12-12 23:07:37 +01:00
|
|
|
},
|
|
|
|
}
|
2012-12-03 18:46:24 +01:00
|
|
|
elif False:
|
|
|
|
DATABASES["default"] = {
|
|
|
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
|
|
|
'NAME': 'humbug',
|
|
|
|
'USER': 'humbug',
|
|
|
|
'PASSWORD': 'yuHavmefbek5',
|
2013-01-29 01:11:01 +01:00
|
|
|
'HOST': 'localhost',
|
|
|
|
'SCHEMA': 'humbug'
|
2012-12-03 18:46:24 +01:00
|
|
|
}
|
2012-08-28 18:44:51 +02:00
|
|
|
|
|
|
|
# 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.
|
|
|
|
# In a Windows environment this must be set to your system time zone.
|
2012-09-12 22:40:18 +02:00
|
|
|
TIME_ZONE = 'America/New_York'
|
2012-08-28 18:44:51 +02:00
|
|
|
|
|
|
|
# Language code for this installation. All choices can be found here:
|
|
|
|
# http://www.i18nguy.com/unicode/language-identifiers.html
|
|
|
|
LANGUAGE_CODE = 'en-us'
|
|
|
|
|
2012-11-01 23:11:32 +01:00
|
|
|
# The ID, as an integer, of the current site in the django_site database table.
|
|
|
|
# This is used so that application data can hook into specific site(s) and a
|
|
|
|
# single database can manage content for multiple sites.
|
|
|
|
#
|
|
|
|
# We set this site's domain to 'humbughq.com' in populate_db.
|
2012-08-28 18:44:51 +02:00
|
|
|
SITE_ID = 1
|
|
|
|
|
|
|
|
# If you set this to False, Django will make some optimizations so as not
|
|
|
|
# to load the internationalization machinery.
|
|
|
|
USE_I18N = True
|
|
|
|
|
|
|
|
# If you set this to False, Django will not format dates, numbers and
|
|
|
|
# calendars according to the current locale.
|
|
|
|
USE_L10N = True
|
|
|
|
|
|
|
|
# If you set this to False, Django will not use timezone-aware datetimes.
|
|
|
|
USE_TZ = True
|
|
|
|
|
2012-08-28 18:45:32 +02:00
|
|
|
SITE_ROOT = os.path.realpath(os.path.dirname(__file__))
|
|
|
|
TEMPLATE_DIRS = ( os.path.join(SITE_ROOT, '..', 'templates'),)
|
2012-08-28 18:44:51 +02:00
|
|
|
|
|
|
|
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
|
|
|
|
# trailing slash.
|
|
|
|
# Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
|
|
|
|
MEDIA_URL = ''
|
|
|
|
|
|
|
|
# Make this unique, and don't share it with anybody.
|
|
|
|
SECRET_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
|
|
|
|
|
2012-09-21 17:08:02 +02:00
|
|
|
# A fixed salt used for hashing in certain places, e.g. email-based
|
|
|
|
# username generation.
|
|
|
|
HASH_SALT = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
|
2012-09-19 19:39:34 +02:00
|
|
|
|
2012-10-17 22:35:35 +02:00
|
|
|
# Tell the browser to never send our cookies without encryption, e.g.
|
|
|
|
# when executing the initial http -> https redirect.
|
|
|
|
#
|
|
|
|
# Turn it off for local testing because we don't have SSL.
|
2012-12-11 22:07:57 +01:00
|
|
|
if DEPLOYED:
|
2012-10-17 22:35:35 +02:00
|
|
|
SESSION_COOKIE_SECURE = True
|
|
|
|
CSRF_COOKIE_SECURE = True
|
|
|
|
|
2012-10-26 21:57:13 +02:00
|
|
|
# Prevent Javascript from reading the CSRF token from cookies. Our code gets
|
|
|
|
# the token from the DOM, which means malicious code could too. But hiding the
|
|
|
|
# cookie will slow down some attackers.
|
|
|
|
CSRF_COOKIE_PATH = '/;HttpOnly'
|
|
|
|
|
2012-10-12 17:04:26 +02:00
|
|
|
# Used just for generating initial passwords and API keys.
|
2012-10-10 16:59:59 +02:00
|
|
|
INITIAL_PASSWORD_SALT = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
|
2012-10-12 17:04:26 +02:00
|
|
|
INITIAL_API_KEY_SALT = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
|
2012-10-10 16:59:59 +02:00
|
|
|
|
2012-10-09 22:21:03 +02:00
|
|
|
# A shared secret, used to authenticate different parts of the app to each other.
|
|
|
|
# FIXME: store this password more securely
|
|
|
|
SHARED_SECRET = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
|
|
|
|
|
2012-11-08 21:49:04 +01:00
|
|
|
# Base URL of the Tornado server
|
2012-11-08 23:23:25 +01:00
|
|
|
# We set it to None when running backend tests or populate_db.
|
|
|
|
# We override the port number when running frontend tests.
|
2012-11-08 21:49:04 +01:00
|
|
|
TORNADO_SERVER = 'http://localhost:9993'
|
2013-01-09 22:45:23 +01:00
|
|
|
RUNNING_INSIDE_TORNADO = False
|
2012-10-09 22:21:03 +02:00
|
|
|
|
2012-10-09 23:52:48 +02:00
|
|
|
# Make redirects work properly behind a reverse proxy
|
|
|
|
USE_X_FORWARDED_HOST = True
|
|
|
|
|
2012-08-28 18:44:51 +02:00
|
|
|
# List of callables that know how to import templates from various sources.
|
|
|
|
TEMPLATE_LOADERS = (
|
|
|
|
'django.template.loaders.filesystem.Loader',
|
|
|
|
'django.template.loaders.app_directories.Loader',
|
|
|
|
)
|
|
|
|
|
|
|
|
MIDDLEWARE_CLASSES = (
|
2012-11-14 21:00:26 +01:00
|
|
|
# Our logging middleware should be the first middleware item.
|
|
|
|
'zephyr.middleware.LogRequests',
|
2012-12-19 20:19:46 +01:00
|
|
|
'zephyr.middleware.JsonErrorHandler',
|
2012-08-28 18:44:51 +02:00
|
|
|
'django.middleware.common.CommonMiddleware',
|
|
|
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
|
|
|
'django.middleware.csrf.CsrfViewMiddleware',
|
|
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
|
|
|
)
|
|
|
|
|
2012-09-21 16:10:36 +02:00
|
|
|
AUTHENTICATION_BACKENDS = ('humbug.backends.EmailAuthBackend',)
|
|
|
|
|
2012-11-14 20:50:47 +01:00
|
|
|
TEST_RUNNER = 'zephyr.tests.Runner'
|
|
|
|
|
2012-08-28 18:44:51 +02:00
|
|
|
ROOT_URLCONF = 'humbug.urls'
|
|
|
|
|
|
|
|
# Python dotted path to the WSGI application used by Django's runserver.
|
|
|
|
WSGI_APPLICATION = 'humbug.wsgi.application'
|
|
|
|
|
|
|
|
INSTALLED_APPS = (
|
|
|
|
'django.contrib.auth',
|
2013-01-16 21:36:32 +01:00
|
|
|
'humbug.authhack',
|
2012-08-28 18:44:51 +02:00
|
|
|
'django.contrib.contenttypes',
|
|
|
|
'django.contrib.sessions',
|
|
|
|
'django.contrib.sites',
|
2013-01-30 23:11:34 +01:00
|
|
|
'django.contrib.staticfiles',
|
2013-01-02 19:42:00 +01:00
|
|
|
'south',
|
2012-09-06 21:13:15 +02:00
|
|
|
'jstemplate',
|
2012-09-28 22:47:05 +02:00
|
|
|
'confirmation',
|
2013-01-30 23:11:34 +01:00
|
|
|
'pipeline',
|
2012-08-28 18:44:51 +02:00
|
|
|
'zephyr',
|
|
|
|
)
|
|
|
|
|
2013-01-30 23:11:34 +01:00
|
|
|
|
|
|
|
# Static files and minification
|
|
|
|
|
|
|
|
STATIC_URL = '/static/'
|
|
|
|
|
|
|
|
STATICFILES_FINDERS = (
|
|
|
|
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
|
|
|
)
|
|
|
|
|
|
|
|
STATICFILES_STORAGE = 'pipeline.storage.PipelineStorage'
|
|
|
|
|
|
|
|
STATIC_ROOT = 'prod-static/collected'
|
|
|
|
|
2013-02-24 19:57:01 +01:00
|
|
|
# This is the default behavior from Pipeline, but we set it
|
|
|
|
# here so that urls.py can read it.
|
|
|
|
PIPELINE = not DEBUG
|
|
|
|
|
|
|
|
# To use minified files in dev, set PIPELINE = True.
|
|
|
|
#
|
|
|
|
# You will need to run ./tools/update-prod-static after
|
|
|
|
# changing static files.
|
|
|
|
|
2013-01-30 23:11:34 +01:00
|
|
|
PIPELINE_CSS = {
|
|
|
|
'app': {
|
|
|
|
'source_filenames': (
|
|
|
|
'styles/zephyr.css',
|
|
|
|
'styles/pygments.css',
|
|
|
|
),
|
|
|
|
'output_filename': 'min/app.css'
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
PIPELINE_JS = {
|
|
|
|
'app': {
|
|
|
|
'source_filenames': (
|
|
|
|
'js/util.js',
|
|
|
|
'js/setup.js',
|
|
|
|
'js/rows.js',
|
|
|
|
'js/narrow.js',
|
|
|
|
'js/reload.js',
|
2013-01-30 21:49:56 +01:00
|
|
|
'js/notifications_bar.js',
|
2013-01-30 23:11:34 +01:00
|
|
|
'js/compose.js',
|
|
|
|
'js/subs.js',
|
|
|
|
'js/ui.js',
|
|
|
|
'js/typeahead_helper.js',
|
|
|
|
'js/search.js',
|
|
|
|
'js/composebox_typeahead.js',
|
|
|
|
'js/hotkey.js',
|
|
|
|
'js/notifications.js',
|
|
|
|
'js/hashchange.js',
|
|
|
|
'js/invite.js',
|
2012-12-05 23:54:49 +01:00
|
|
|
'js/message_list.js',
|
2013-01-30 23:11:34 +01:00
|
|
|
'js/zephyr.js',
|
2013-02-07 19:57:45 +01:00
|
|
|
'js/activity.js',
|
2013-02-16 09:43:27 +01:00
|
|
|
'js/colorspace.js',
|
2013-01-14 17:26:50 +01:00
|
|
|
'js/timerender.js',
|
2013-02-13 22:04:35 +01:00
|
|
|
'js/tutorial.js',
|
2013-01-30 23:11:34 +01:00
|
|
|
),
|
|
|
|
'output_filename': 'min/app.js'
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
PIPELINE_CSS_COMPRESSOR = 'pipeline.compressors.yui.YUICompressor'
|
|
|
|
PIPELINE_JS_COMPRESSOR = 'pipeline.compressors.yui.YUICompressor'
|
|
|
|
PIPELINE_YUI_BINARY = '/usr/bin/env yui-compressor'
|
|
|
|
|
|
|
|
# Disable stuffing the entire JavaScript codebase inside an anonymous function.
|
|
|
|
# We need modules to be externally visible, so that methods can be called from
|
|
|
|
# event handlers defined in HTML.
|
|
|
|
PIPELINE_DISABLE_WRAPPER = True
|
|
|
|
|
|
|
|
|
2013-01-11 21:16:42 +01:00
|
|
|
USING_RABBITMQ = DEPLOYED
|
|
|
|
# This password also appears in servers/configure-rabbitmq
|
|
|
|
RABBITMQ_PASSWORD = 'xxxxxxxxxxxxxxxx'
|
|
|
|
|
2012-09-19 17:58:22 +02:00
|
|
|
# Caching
|
2012-12-11 22:07:57 +01:00
|
|
|
if DEPLOYED:
|
2012-11-25 01:18:04 +01:00
|
|
|
CACHES = { 'default': {
|
|
|
|
'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
|
|
|
|
'LOCATION': '127.0.0.1:11211',
|
|
|
|
'TIMEOUT': 3600
|
|
|
|
} }
|
2013-01-09 18:02:26 +01:00
|
|
|
SESSION_ENGINE = "django.contrib.sessions.backends.cached_db"
|
2012-11-25 01:18:04 +01:00
|
|
|
else:
|
|
|
|
CACHES = { 'default': {
|
2012-09-19 17:58:22 +02:00
|
|
|
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
|
|
|
|
'LOCATION': 'humbug-default-local-cache',
|
|
|
|
'TIMEOUT': 3600,
|
|
|
|
'OPTIONS': {
|
|
|
|
'MAX_ENTRIES': 100000
|
|
|
|
}
|
2012-11-25 01:18:04 +01:00
|
|
|
} }
|
2012-09-19 17:58:22 +02:00
|
|
|
|
2012-08-28 18:44:51 +02:00
|
|
|
LOGGING = {
|
|
|
|
'version': 1,
|
2012-10-16 22:52:51 +02:00
|
|
|
'disable_existing_loggers': True,
|
2012-09-18 22:40:19 +02:00
|
|
|
'formatters': {
|
|
|
|
'default': {
|
|
|
|
'format': '%(asctime)s %(levelname)-8s %(message)s'
|
|
|
|
}
|
|
|
|
},
|
2012-12-05 18:01:43 +01:00
|
|
|
'filters': {
|
2012-12-06 22:00:34 +01:00
|
|
|
'HumbugLimiter': {
|
|
|
|
'()': 'humbug.ratelimit.HumbugLimiter',
|
|
|
|
},
|
|
|
|
'EmailLimiter': {
|
|
|
|
'()': 'humbug.ratelimit.EmailLimiter',
|
|
|
|
},
|
|
|
|
'require_debug_false': {
|
|
|
|
'()': 'django.utils.log.RequireDebugFalse',
|
2012-12-05 18:01:43 +01:00
|
|
|
}
|
|
|
|
},
|
2012-09-18 22:40:19 +02:00
|
|
|
'handlers': {
|
2012-12-06 22:00:34 +01:00
|
|
|
'inapp': {
|
|
|
|
'level': 'ERROR',
|
|
|
|
'class': 'zephyr.handlers.AdminHumbugHandler',
|
|
|
|
'filters': ['HumbugLimiter', 'require_debug_false'],
|
|
|
|
'formatter': 'default'
|
|
|
|
},
|
2012-09-18 22:40:19 +02:00
|
|
|
'console': {
|
|
|
|
'level': 'DEBUG',
|
|
|
|
'class': 'logging.StreamHandler',
|
|
|
|
'formatter': 'default'
|
2012-10-12 23:47:43 +02:00
|
|
|
},
|
|
|
|
'file': {
|
|
|
|
'level': 'DEBUG',
|
|
|
|
'class': 'logging.FileHandler',
|
|
|
|
'formatter': 'default',
|
|
|
|
'filename': 'server.log'
|
2012-12-05 18:01:43 +01:00
|
|
|
},
|
|
|
|
'mail_admins': {
|
|
|
|
'level': 'ERROR',
|
2013-01-16 20:45:07 +01:00
|
|
|
'class': 'zephyr.handlers.HumbugAdminEmailHandler',
|
2012-12-06 22:00:34 +01:00
|
|
|
'filters': ['EmailLimiter', 'require_debug_false'],
|
2012-12-05 18:01:43 +01:00
|
|
|
},
|
2012-09-18 22:40:19 +02:00
|
|
|
},
|
|
|
|
'loggers': {
|
2012-10-09 17:41:13 +02:00
|
|
|
'': {
|
2012-12-06 22:00:34 +01:00
|
|
|
'handlers': ['inapp', 'console', 'file', 'mail_admins'],
|
2012-09-18 22:40:19 +02:00
|
|
|
'level': 'INFO'
|
|
|
|
}
|
|
|
|
}
|
2012-08-28 18:44:51 +02:00
|
|
|
}
|
|
|
|
|
2012-10-15 22:52:08 +02:00
|
|
|
TEMPLATE_CONTEXT_PROCESSORS = (
|
|
|
|
'zephyr.context_processors.add_settings',
|
|
|
|
)
|
|
|
|
|
2012-08-28 18:44:51 +02:00
|
|
|
ACCOUNT_ACTIVATION_DAYS=7
|
2012-10-01 21:03:59 +02:00
|
|
|
EMAIL_USE_TLS = True
|
|
|
|
EMAIL_HOST = 'smtp.gmail.com'
|
|
|
|
EMAIL_HOST_USER = 'humbug@humbughq.com'
|
|
|
|
EMAIL_HOST_PASSWORD = 'xxxxxxxxxxxxxxxx'
|
|
|
|
EMAIL_PORT = 587
|
|
|
|
|
2012-10-02 00:04:44 +02:00
|
|
|
DEFAULT_FROM_EMAIL = "Humbug <humbug@humbughq.com>"
|
2012-09-06 21:15:11 +02:00
|
|
|
|
|
|
|
LOGIN_REDIRECT_URL='/'
|
2012-09-27 19:58:42 +02:00
|
|
|
|
2013-01-14 20:09:25 +01:00
|
|
|
EVENT_LOG_DIR = 'event_log'
|
2012-09-28 22:47:05 +02:00
|
|
|
|
2012-12-11 18:08:18 +01:00
|
|
|
# Polling timeout for get_updates, in milliseconds.
|
|
|
|
# We configure this here so that the client test suite can override it.
|
|
|
|
# The default is 55 seconds, to deal with crappy home wireless routers that
|
|
|
|
# kill "inactive" http connections.
|
2013-01-09 01:13:19 +01:00
|
|
|
#POLL_TIMEOUT = 55 * 1000
|
|
|
|
# As a stopgap to deal with increased load, increase the polling
|
|
|
|
# timeout to 5 minutes.
|
|
|
|
POLL_TIMEOUT = 5 * 60 * 1000
|
2012-12-11 18:08:18 +01:00
|
|
|
|
2012-12-11 22:07:57 +01:00
|
|
|
if DEPLOYED:
|
2012-10-15 22:47:52 +02:00
|
|
|
ALLOW_REGISTER = False
|
2012-10-15 22:52:08 +02:00
|
|
|
FULL_NAVBAR = False
|
2012-10-29 19:56:40 +01:00
|
|
|
HOME_NOT_LOGGED_IN = '/accounts/login'
|
2012-10-15 22:34:24 +02:00
|
|
|
else:
|
2012-10-15 22:47:52 +02:00
|
|
|
ALLOW_REGISTER = True
|
2012-10-15 22:52:08 +02:00
|
|
|
FULL_NAVBAR = True
|
2012-10-29 19:56:40 +01:00
|
|
|
HOME_NOT_LOGGED_IN = '/accounts/home'
|
2012-10-15 22:31:06 +02:00
|
|
|
|
2012-09-28 22:47:05 +02:00
|
|
|
# For testing, you may want to have emails be printed to the console.
|
2012-12-11 22:07:57 +01:00
|
|
|
if not DEPLOYED:
|
2012-10-01 21:03:59 +02:00
|
|
|
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
2012-10-20 21:25:33 +02:00
|
|
|
|
|
|
|
# Use fast password hashing for creating testing users when not
|
2012-12-11 22:07:57 +01:00
|
|
|
# DEPLOYED
|
2012-10-20 21:25:33 +02:00
|
|
|
PASSWORD_HASHERS = (
|
|
|
|
'django.contrib.auth.hashers.SHA1PasswordHasher',
|
2013-01-03 21:43:45 +01:00
|
|
|
'django.contrib.auth.hashers.PBKDF2PasswordHasher'
|
2012-10-20 21:25:33 +02:00
|
|
|
)
|
2012-12-07 23:00:13 +01:00
|
|
|
|
2012-12-11 22:07:57 +01:00
|
|
|
if DEPLOYED:
|
2012-12-07 23:00:13 +01:00
|
|
|
# Filter out user data
|
|
|
|
DEFAULT_EXCEPTION_REPORTER_FILTER = 'zephyr.filters.HumbugExceptionReporterFilter'
|