From f86b0ed43b8fd60d4cbc6218fd6d50897e88bd1d Mon Sep 17 00:00:00 2001 From: hjdhnx Date: Fri, 2 Sep 2022 06:47:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index dc19e31..d2e9022 100644 --- a/app.py +++ b/app.py @@ -23,7 +23,7 @@ import codecs from classes.cms import CMS,logger from models import * import json -# sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach()) +sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach()) def create_flask_app(config): app = Flask(__name__, static_folder='static', static_url_path='/static') @@ -523,4 +523,4 @@ if __name__ == '__main__': server = WSGIServer((http_host, http_port), app,log=logger) server.serve_forever() else: - app.run(debug=True, host=http_host, port=http_port) \ No newline at end of file + app.run(debug=False, host=http_host, port=http_port) \ No newline at end of file -- GitLab