aboutsummaryrefslogtreecommitdiffstats
path: root/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'server.py')
-rw-r--r--server.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/server.py b/server.py
index 1908ad3..8937d4b 100644
--- a/server.py
+++ b/server.py
@@ -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()