app/django/views/decorators/gzip.py
author Sverre Rabbelier <srabbelier@gmail.com>
Fri, 28 Aug 2009 11:49:47 -0700
changeset 2836 0181649aa7b0
parent 54 03e267d67478
permissions -rw-r--r--
Use per-request store to store access rights

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