# -*- coding: utf8 -*-

import redis
from flask import Flask
from werkzeug.local import LocalProxy

app = Flask(__name__)
app.debug = True
app._db = redis.Redis()
db = LocalProxy(lambda: app._db)

# -*- coding: utf8 -*-

import redis
from flask import Flask
from werkzeug.local import LocalProxy

app = Flask(__name__)
app.debug = True
app._db = redis.Redis()
db = LocalProxy(lambda: app._db)
app.secret_key = "polichinelle"

add secret key