Devi

Bangalore, India

Jun
23
answered Cannot complete Flask-Migration
Jun
18
comment Using flask_login session with jinja2 templates
Flask-login docs do specify that You can then access the logged-in user with the current_user proxy, which is available in every template
Jun
17
answered Which record is causing NOTICE: word is too long to be indexed
May
14
comment Spell Checker for Python
The above mentioned full blog post just tries to "describe" Norvig's excellent and simple spell corrector and I don't think it has any extra information than the original work.
May
7
comment flask: error_handler for blueprints
Even with this in place, abort(404) in the blueprint's views would be handled by app's error handler and not this. See Flask doc for it for more info.
Apr
30
comment What's the difference between filter and filter_by in SQLAlchemy?
Is there any performance difference between them? I was thinking that filter_by might be a bit faster than filter.
Apr
17
answered what’s the difference between Expires and Cache-Control headers?
Apr
14
answered Using defaults with app.add_url_rule in Flask
Apr
8
awarded Good Answer
Mar
27
awarded Commentator
Mar
27
comment Execute some code when an SQLAlchemy object's deletion is actually committed
But models_committed is not limited to delete only, but called for inserts and updates which are most common. From the doc, "This signal is sent when changed models where committed to the database"
Mar
26
comment Execute some code when an SQLAlchemy object's deletion is actually committed
This is called on every commit for every model that's in the app. Isn't it an overkill?
Mar
23
answered SQLAlchemy: selecting which columns of an object in a query
Mar
7
awarded Yearling
Mar
7
awarded Yearling
May
5
answered Flask: How to manage different environment databases?
Apr
19
awarded Nice Answer
Feb
13
comment How do I discover the structure of a PostgreSQL database?
If you want to see the entire database structure in one go, type \d * in the psql console. That gives schema of all tables in that database.
Dec
18
comment How do I run Python code from Sublime Text 2?
Having the line {"keys": ["ctrl+shift+c"], "command": "exec", "args": {"kill": true} } in User key bindings and using ctrl+shift+c prints that the build is [Cancelled] while the program still being run.
Oct
21
answered building REST API in FLASK
1 2 3