-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
53 lines (38 loc) · 1.16 KB
/
config.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
"""Configuration file."""
class Config(object):
"""Main config class for the project."""
DEBUG = False
TESTING = False
CSRF_ENABLED = True
SECRET_KEY = 'this-really-needs-to-be-changed'
DATABASE_USER = "interview"
DATABASE_PWD = "uo4uu3AeF3"
POSTGRES = {
'user': DATABASE_USER,
'pw': DATABASE_PWD,
'db': 'suade',
'host': 'candidate.suade.org',
'port': '5432',
}
CONN_STRING = "host='%(host)s' dbname='%(db)s' user='%(user)s' password='%(pw)s'" % POSTGRES
# CONN_STRING = CONN_STRING
SUPPORTED_FORMAT = ['xml', 'pdf', 'json']
SUPPORTED_CONTENT_TYPE = ['text/xml', 'application/pdf', 'application/json']
class ProductionConfig(Config):
"""Production config."""
DEBUG = False
class StagingConfig(Config):
"""Staging config."""
DEVELOPMENT = True
DEBUG = True
class DevelopmentConfig(Config):
"""Dev config."""
DEVELOPMENT = True
DEBUG = True
class TestingConfig(Config):
"""Test config."""
TESTING = True
# # Default timeout is 5 seconds
# LIVESERVER_TIMEOUT = 10
# # Set to 0 to have the OS pick the port
# LIVESERVER_PORT = 8943