app/django/views/decorators/gzip.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Thu, 24 Sep 2009 21:15:45 +0200
changeset 2972 1e1b8f22e153
parent 54 03e267d67478
permissions -rw-r--r--
Style fixes in seed_db module.

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