How to check if a Django template has been overridden

If you're an author of a Django package, you might find it useful to check whether a template has been overridden. Here's a little snippet that helps you do that.