web/lib/django/views/decorators/gzip.py
author ymh <ymh.work@gmail.com>
Thu, 21 Oct 2010 17:55:22 +0200
changeset 54 53393dd1d878
parent 0 0d40e90630ef
permissions -rw-r--r--
define version 00.014

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