Revert "Remove unused imports"

This reverts commit 3ac71cdc4f511411b57ef769826b1ff60d7def79.
Revert "Use Django's caching key prefix as well"

This reverts commit a0d44ef29f24ed873d3729f0e9026ef8ce45496e.