diff options
Diffstat (limited to 'server.py')
-rw-r--r-- | server.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,8 +1,10 @@ import os from flask import Flask from siteconfig import siteconfig +from flask_compress import Compress app = Flask(__name__) +compress = Compress() from views import * @@ -30,9 +32,10 @@ def setup(): app.config.update({'DOMAIN': siteconfig.DOMAIN}) app.config.update({'HOME_TITLE': siteconfig.HOME_TITLE}) - + app.config.update({'COMPRESS_MIMETYPES': siteconfig.COMPRESS_MIMETYPES}) # Setup needs to come first to be compatible with wsgi setup() if __name__ == "__main__": + compress.init_app(app) app.run() |