app/django/views/decorators/gzip.py
author Todd Larsen <tlarsen@google.com>
Tue, 16 Sep 2008 17:05:43 +0000
changeset 156 476950fc348d
parent 54 03e267d67478
permissions -rw-r--r--
Oops, this should have been part of the r580 commit.

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