-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.py
38 lines (31 loc) · 1.01 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
import os
class Config(object):
SECRET_KEY = os.urandom(32)
S3_BUCKET = os.environ.get("S3_BUCKET")
S3_KEY = os.environ.get("S3_KEY")
S3_SECRET = os.environ.get("S3_SECRET_ACCESS_KEY")
S3_LOCATION = 'https://{}.s3.amazonaws.com/'.format(S3_BUCKET)
#test new branch
class DevelopmentConfig(Config):
TEMPLATES_AUTO_RELOAD = True
POSTGRES = {
'user': 'postgres',
'pw': '1',
'db': 'jto',
'host': 'localhost',
'port': '5432',
}
SQLALCHEMY_DATABASE_URI = 'postgresql:https://%(user)s:\
%(pw)s@%(host)s:%(port)s/%(db)s' % POSTGRES
SQLALCHEMY_TRACK_MODIFICATIONS = True
class ProductionConfig(Config):
POSTGRES = {
'user': 'postgres',
'pw': '!J.0.0.0',
'db': 'jtodb',
#'host': 'jto-instance.cwa9qfrslztl.us-west-2.rds.amazonaws.com',
'host' : 'jtodb1.cdfuep09ddqw.us-east-1.rds.amazonaws.com',
'port': '5432',
}
SQLALCHEMY_DATABASE_URI = 'postgresql:https://%(user)s:\
%(pw)s@%(host)s:%(port)s/%(db)s' % POSTGRES