app/django/views/decorators/gzip.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Tue, 02 Jun 2009 19:20:14 +0200
changeset 2381 2449a52035ee
parent 54 03e267d67478
permissions -rw-r--r--
Rename soc-090421.css and update base.html template.

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