forked from Astroua/AstroCompute_Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
25 lines (18 loc) · 797 Bytes
/
Copy pathconfig.py
File metadata and controls
25 lines (18 loc) · 797 Bytes
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
from boto import Config
import os
class AWSConfig(object):
"""docstring for AWSConfig"""
DEBUG = True
# edit the URI below to add your RDS password and your AWS URL
# The other elements are the same as used in the tutorial
# format: (user):(password)@(db_identifier).amazonaws.com:3306/(db_name)
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://ualberta:H1743m322@user-database.cpluopkax7lm.us-west-2.rds.amazonaws.com:3306/user_db'
SQLALCHEMY_POOL_RECYCLE = 3600
config = Config()
config.load_credential_file(os.path.join(os.path.expanduser("~"),
".aws/credentials"))
info = config.items("default")[2:]
AWS_KEY = info[0][1]
AWS_SECRET = info[1][1]
WTF_CSRF_ENABLED = True
SECRET_KEY = 'cheese'