app/django/views/decorators/gzip.py
author Augie Fackler <durin42@gmail.com>
Tue, 03 Mar 2009 03:37:16 +0000 (2009-03-03)
changeset 1599 b56976cac36b
parent 54 03e267d67478
permissions -rw-r--r--
Add myself to authors on this file, and allow my whitespace cleanup hook to cleanup whitespace. Patch by: Augie Fackler
"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)