Support Django's cached template loader.
Closes #660