-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.py
32 lines (25 loc) · 817 Bytes
/
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
# setting debug mode
DEBUG = False
# secret_key that need to make CSRF protection
SECRET_KEY = 'this_is_a_secret_key'
# add mongoengine to flask_debugtoolbar view
DEBUG_TB_PANELS = ['flask_mongoengine.panels.MongoDebugPanel']
# setting flask_debugtoolbar whether intercept redirect
DEBUG_TB_INTERCEPT_REDIRECTS = False
# setting https mode or not
SSL_OR_NOT = True
# SSL_OR_NOT = False
# mongodb database access configuration
MONGODB_SETTINGS = {
'db': 'trade',
'host': 'HOST_FOR_YOUR_MONGODB_SERVER',
'port': 'PORT_NUMBER_FOR_YOUR_MONGODB_SERVER'
}
MONGODB_URL = 'mongodb://host:port'
REDIS_SERVER_HOST = 'REDIS_HORT'
REDIS_SERVER_PORT = 'REDIS_PORT'
REDIS_SERVER_DB = 1
MARKET_MORNING_OPEN = "09:30"
MARKET_MORNING_CLOSE = "11:30"
MARKET_AFTERNOON_OPEN = "13:00"
MARKET_AFTERNOON_CLOSE = "15:00"