Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config variable not included in template context #5

Open
rhyek opened this issue Jun 17, 2013 · 0 comments
Open

config variable not included in template context #5

rhyek opened this issue Jun 17, 2013 · 0 comments

Comments

@rhyek
Copy link

rhyek commented Jun 17, 2013

This variable is no longer available from a mako template since a change in how Flask manages it (pallets/flask@f34c028).

In the meantime I'm using a context_processor which helps me get around this issue:

from flask import Flask

app = Flask(__name__)

@app.context_processor
def inject_config():
    return {'config': app.config}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant