autoversion css

This commit is contained in:
Fabian Dill
2020-06-25 03:42:05 +02:00
parent 161abbe874
commit f489f5f6c5
4 changed files with 8 additions and 5 deletions

View File

@@ -12,6 +12,7 @@ import zlib
from pony.flask import Pony
from flask import Flask, request, redirect, url_for, render_template, Response, session, abort, flash
from flask_caching import Cache
from flaskext.autoversion import Autoversion
from .models import *
@@ -39,7 +40,8 @@ app.config["PONY"] = {
'create_db': True
}
app.config["CACHE_TYPE"] = "simple"
app.autoversion = True
av = Autoversion(app)
cache = Cache(app)
# this local cache is risky business if app hosting is done with subprocesses as it will not sync. Waitress is fine though