Devi

Bangalore, India

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
Oct
21
comment How to remove all items from many-to-many collection in SqlAlchemy?
Why not just blogpost.tags = new_tags? (without [:])
Aug
27
comment How to handle nested context?
The above example doesn't work in the online demo still, as it uses very old version (0.2.3-dev source), where as the latest version is 0.7.2, as of today.
Jul
16
awarded Tumbleweed
Jul
9
asked Accessing models in alembic migrations
Jul
9
comment Modify data as part of an alembic upgrade
Can you post the solution if you had solved this?
Feb
14
awarded Necromancer
1 2 3