app/django/views/decorators/gzip.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Wed, 20 Aug 2008 10:14:49 +0000
changeset 96 4fac7d09fc74
parent 54 03e267d67478
permissions -rw-r--r--
Moved td.formfieldlabel to FORM TABLE FIELDS section.

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