This repository has been archived by the owner on Feb 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
settings.py
73 lines (58 loc) · 1.74 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8
SECRET_KEY = 'this is not a secret key'
INSTALLED_APPS = (
'dimagi.utils',
'dimagi.ext',
'couchdbkit.ext.django',
'django.contrib.contenttypes',
'django.contrib.auth',
)
MIDDLEWARE_CLASSES = ()
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'dimagi_utils',
}
}
####### Couch Config ######
COUCH_DATABASE = 'http://127.0.0.1:5984/dimagi_utils'
COUCHDB_DATABASES = [(app, COUCH_DATABASE) for app in ['utils', 'ext', 'couch']]
TEST_RUNNER = 'couchdbkit.ext.django.testrunner.CouchDbKitTestSuiteRunner'
###### Redis Config ######
REDIS_CONFIG = {
'BACKEND': 'django_redis.cache.RedisCache',
'LOCATION': 'redis://127.0.0.1:6379/0',
'OPTIONS': {},
}
CACHES = {
'default': REDIS_CONFIG,
'redis': REDIS_CONFIG,
}
####### # Email setup ########
# Print emails to console so there is no danger of spamming, but you can still get registration URLs
EMAIL_BACKEND='django.core.mail.backends.console.EmailBackend'
EMAIL_LOGIN = "nobody@example.com"
EMAIL_PASSWORD = "******"
EMAIL_SMTP_HOST = "smtp.example.com"
EMAIL_SMTP_PORT = 587
COVERAGE_REPORT_HTML_OUTPUT_DIR='coverage-html'
COVERAGE_MODULE_EXCLUDES= ['tests$', 'settings$', 'urls$', 'locale$',
'common.views.test', '^django', 'management', 'migrations',
'^south', '^djcelery', '^debug_toolbar', '^rosetta']
# Disable logging
LOGGING = {
'version': 1,
'handlers': {
'null': {
'level': 'DEBUG',
'class': 'django.utils.log.NullHandler',
},
},
'loggers': {
'': {
'level': 'CRITICAL',
'handler': 'null',
'propagate': False,
}
}
}