app/django/views/decorators/gzip.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Mon, 28 Sep 2009 12:22:48 +0200
changeset 2988 e11f934e6063
parent 54 03e267d67478
permissions -rw-r--r--
Added tag v0-5-20090928 for changeset db28a7db5cc6

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