mirror of
https://github.com/kennethreitz/flask-common.git
synced 2026-06-05 23:00:19 +00:00
Merge branch 'master' into flask_caching
This commit is contained in:
@@ -9,6 +9,13 @@ from gunicorn.app.base import Application
|
||||
from whitenoise import WhiteNoise
|
||||
from flask_caching import Cache
|
||||
|
||||
try:
|
||||
from flask.exthook import ExtDeprecationWarning
|
||||
import warnings
|
||||
warnings.simplefilter('ignore', ExtDeprecationWarning)
|
||||
except ImportError:
|
||||
pass # DeprecationWarning only relevant to Flask<1.0
|
||||
|
||||
|
||||
# Find the stack on which we want to store the database connection.
|
||||
# Starting with Flask 0.9, the _app_ctx_stack is the correct one,
|
||||
|
||||
Reference in New Issue
Block a user