app/django/views/decorators/gzip.py
author Daniel Bentley <dbentley@google.com>
Sun, 12 Apr 2009 06:24:14 +0000
changeset 2167 91e622242f2d
parent 54 03e267d67478
permissions -rw-r--r--
Respond to comments on r2769. Patch by: Dan Bentley

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