Simon Willison’s Weblog

Subscribe

Friday, 28th December 2012

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

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.

[... 80 words]

2012 » December

MTWTFSS
     12
3456789
10111213141516
17181920212223
24252627282930
31