Questions & Answers
39
votes
1
answers
1504
views
How to handle keyboard interrupts in Python
My script should clean up when user presses Ctrl+C. How do I handle this?
31
votes
1
answers
1629
views
How to use Django signals
How can I run code automatically when a model is saved or deleted?