Simon Willison’s Weblog

Subscribe

How can I detect manual record insert from mysql cansole into my code in django .?

28th December 2012

My answer to How can I detect manual record insert from mysql cansole into my code in django .? on Quora

You can’t. The best you can do is have Django periodically poll MySQL to see if anything has changed (maybe with a custom management command run by cron)—having a TIMESTAMP field on every table which will be automatically set to the current time when a record is inserted will help you spot things that have changed.

This is How can I detect manual record insert from mysql cansole into my code in django .? by Simon Willison, posted on 28th December 2012.

Next: What are some useful techniques and tricks using list comprehension?

Previous: Why do so many newspapers have astrology columns?