when I read my instance config file, I get an error.
exec(compile(config_file.read(), filename, 'exec'), d.dict)
UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 437: illegal multibyte sequence
Then I modify the code of config.from_pyfile to this
with open(filename, 'rb') as config_file:
The problem is resolved.