app/django/views/decorators/gzip.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Fri, 27 Mar 2009 14:19:16 +0000 (2009-03-27)
changeset 2022 3d84ec6dbd03
parent 54 03e267d67478
permissions -rw-r--r--
Fix Issue 381(Date fields should be displayed in ISO standard formatting) and Issue 207 (Date selector Javascript control always starts out with year 1900 selected). Patch by: Daniel Hans Reviewed by: Pawel Solyga
"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)