app/django/views/decorators/gzip.py
author Sverre Rabbelier <srabbelier@gmail.com>
Sat, 22 Nov 2008 20:54:42 +0000
changeset 564 d928d226cfad
parent 54 03e267d67478
permissions -rw-r--r--
Hide the 'home' field until we have a proper document selector Rather than having a confusing 'home' field that lists all Linkables (in other words, everything in the database), we're better off hiding it for now.

"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)