forked from lily-liu/PythonDataMining
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py
More file actions
24 lines (22 loc) · 629 Bytes
/
config.py
File metadata and controls
24 lines (22 loc) · 629 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
import testing_1
SQLALCHEMY_DATABASE_URI = 'oracle://linkwoodorcl:linkwoodorcl@mwn-jkt.kana.com:1521/XE'
SQLALCHEMY_BINDS = {
'main':'oracle://linkwoodorcl:linkwoodorcl@mwn-jkt.kana.com:1521/XE',
'mailconfig':'oracle://linkwoodorcl_mailconfig:linkwoodorcl_mailconfig@mwn-jkt.kana.com:1521/XE'
}
MONGO_DBNAME = 'emails'
JOBS = [
{
'id': 'job1',
'func': 'config:db_jobs',
'trigger': 'interval',
'minutes': 2
}
]
SCHEDULER_API_ENABLED = True
def db_jobs():
with testing_1.app.app_context():
try:
testing_1.init_db()
except Exception:
pass