app/django/views/decorators/gzip.py
author Todd Larsen <tlarsen@google.com>
Tue, 16 Sep 2008 16:24:18 +0000
changeset 152 7c1e2cb6dc44
parent 54 03e267d67478
permissions -rw-r--r--
Discourage third-party code from being embedded in the soc framework.

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