app/django/views/decorators/gzip.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Tue, 26 May 2009 22:04:52 +0200
changeset 2356 7c0a55e8e46f
parent 54 03e267d67478
permissions -rw-r--r--
Some small fixes to unique_user_id_adder 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)