缺少config.ini文件,请问下这个文件怎么写呀?
Closed this issue · 3 comments
505088376 commented
timercrack commented
ylsaker commented
@505088376 请问你解决了吗? @timercrack 上面的文件没有关于DJANGO的配置呀?
ghLcd9dG commented
config.ini template
[MSG_CHANNEL]
request_pattern = MSG:CTP:REQ:*
request_format = MSG:CTP:REQ:{}
trade_response_prefix = MSG:CTP:RSP:TRADE:
trade_response_format = MSG:CTP:RSP:TRADE:{}:{}
market_response_prefix = MSG:CTP:RSP:MARKET:
market_response_format = MSG:CTP:RSP:MARKET:{}:{}
weixin_log = MSG:LOG:WEIXIN
[TRADE]
command_timeout = 5
ignore_inst = WH,bb,JR,RI,RS,LR,PM,im
[REDIS]
host = 127.0.0.1
port = 6379
db = 0
encoding = utf-8
[MYSQL]
host = 127.0.0.1
port = 3306
db = QuantDB
user = quant
password = 123456
[QuantDL]
api_key = 123456
[Tushare]
token = 123456
[LOG]
level = DEBUG
format = %(asctime)s %(name)s [%(levelname)s] %(message)s
weixin_format = [%(levelname)s] %(message)s
[DJANGO]
secret_key = your_secret_key_here
debug = True # or False, depending on your environment
allowed_hosts = *