modify config to varbles

This commit is contained in:
DanielChien 2017-01-04 23:30:29 +08:00
parent b67482de9b
commit 1942644434

View File

@ -14,9 +14,11 @@ from sanic.response import json
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy()) asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
DB_CONFIG = { DB_CONFIG = {
'host': 'localhost', 'host': '<host>',
'user': 'tachien', 'user': '<username>',
'database': 'tachien' 'password': '<password>',
'port': '<port>',
'database': '<database>'
} }
def jsonify(records): def jsonify(records):