app/django/views/decorators/gzip.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Mon, 01 Jun 2009 23:42:36 +0200
changeset 2377 8f3771ff383b
parent 54 03e267d67478
permissions -rw-r--r--
Add taggable-mixin and gviz to build script.

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