aboutsummaryrefslogtreecommitdiffstats
path: root/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'server.py')
-rw-r--r--server.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/server.py b/server.py
index 545f4b6..c5522b9 100644
--- a/server.py
+++ b/server.py
@@ -6,6 +6,7 @@ from flask import Flask
from siteconfig import siteconfig
from flask_compress import Compress
from flask_caching import Cache
+from rss_generator import RSS_Item, get_rss_channel
app = Flask(__name__)
compress = Compress()
@@ -41,11 +42,12 @@ def setup():
app.config.update(
{'COMPRESS_MIMETYPES': siteconfig.COMPRESS_MIMETYPES}
)
+ app.config.update({'RSS_CHANNEL': get_rss_channel()})
# Setup needs to come first to be compatible with wsgi
setup()
+compress.init_app(app)
+cache.init_app(app)
if __name__ == "__main__":
- compress.init_app(app)
- cache.init_app(app)
app.run()