Django-based kedb middleware.