# helper.py
def bar():
return 'Hi'
from helper import bar
@app.route("/")
def index():
bar = bar()
get trans(key):
return redis_store.get('en_transcr:' + key)
redis_store = FlaskRedis(app)
from Flask as flask
get trans(key):
redis_store = flask.g.redis
return redis_store.get('en_transcr:' + key)
from flask import current_app