mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 01:29:26 +08:00
Update __init__.py
This commit is contained in:
+2
-5
@@ -26,9 +26,7 @@ from flask import url_for
|
||||
from flask import render_template_string, abort
|
||||
from flask_caching import Cache
|
||||
from flask_session import Session
|
||||
|
||||
from flask_compress import Compress
|
||||
|
||||
# from flask_compress import Compress
|
||||
|
||||
from whitenoise import WhiteNoise
|
||||
|
||||
@@ -43,8 +41,7 @@ common.init()
|
||||
|
||||
app = Flask(__name__, template_folder='templates/default')
|
||||
app.config.version = config_api.config_api().getVersion()
|
||||
|
||||
Compress(app)
|
||||
# Compress(app)
|
||||
|
||||
app.wsgi_app = WhiteNoise(
|
||||
app.wsgi_app, root="route/static/", prefix="static/", max_age=604800)
|
||||
|
||||
Reference in New Issue
Block a user