forked from Princeton-CDH/mep-django
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestsettings.py
39 lines (30 loc) · 915 Bytes
/
testsettings.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
# This file is exec'd from settings.py, so it has access to and can
# modify all the variables in settings.py.
# If this file is changed in development, the development server will
# have to be manually restarted because changes will not be noticed
# immediately.
import os
DEBUG = False
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': os.getenv('DB_PASSWORD'),
'USER': os.getenv('DB_USER'),
'PASSWORD': os.getenv('DB_PASSWORD'),
"HOST": "127.0.0.1",
},
}
SOLR_CONNECTIONS = {
'default': {
'URL': 'http://localhost:8983/solr/',
'COLLECTION': 'sandco',
'CONFIGSET': 'sandco',
'TEST': {
# aggressive commitWithin for test only
'COMMITWITHIN': 750,
}
}
}
# required by mezzanine for unit tests
ALLOWED_HOSTS = ['*']
# secret key added as a travis build step