A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
| from . import app | |
| from flask.ext.sqlalchemy import get_debug_queries | |
| if app.debug: | |
| app.after_request(sql_debug) | |
| def sql_debug(response): | |
| queries = list(get_debug_queries()) | |
| query_str = '' |