web/lib/django/views/decorators/gzip.py
author ymh <ymh.work@gmail.com>
Tue, 25 May 2010 19:06:11 +0200
changeset 31 a727d83c8f88
parent 0 0d40e90630ef
permissions -rw-r--r--
add create_python_env file

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