Factor out the setup() method in interactive
Also allow specifying a custom context dictionary in remote, which
will be used by the stats module to add helper methods.
Patch by: Sverre Rabbelier
"Decorator for views that gzips pages if the client supports it."
from django.utils.decorators import decorator_from_middleware
from django.middleware.gzip import GZipMiddleware
gzip_page = decorator_from_middleware(GZipMiddleware)