master
Aevann1 2021-09-20 16:29:13 +02:00
parent 66765ab596
commit 70114181aa
1 changed files with 2 additions and 2 deletions

View File

@ -3,6 +3,7 @@ gevent.monkey.patch_all()
from os import environ
import secrets
from flask import *
from flask_caching import Cache
from flask_limiter import Limiter
from flask_compress import Compress
from flask_limiter.util import get_ipaddr
@ -13,7 +14,6 @@ from sqlalchemy import *
from sqlalchemy.pool import QueuePool
import gevent
from werkzeug.middleware.proxy_fix import ProxyFix
from flask_caching import Cache
import redis
app = Flask(__name__, template_folder='./templates')
@ -63,8 +63,8 @@ app.config["RATELIMIT_STORAGE_URL"] = "redis://127.0.0.1"
r=redis.Redis(host="127.0.0.1", decode_responses=True, ssl_cert_reqs=None)
cache = Cache(app)
Markdown(app)
cache = Cache(app)
Compress(app)
limiter = Limiter(