app/django/views/decorators/gzip.py
author Sverre Rabbelier <srabbelier@gmail.com>
Sun, 15 Mar 2009 14:10:21 +0000
changeset 1866 a0dcc158bad3
parent 54 03e267d67478
permissions -rw-r--r--
Renamed "Idea page" to "Ideas page" Also renamed "all organizations" to "accepted organizations". Added a longer description to the first list. Patch by: Sverre Rabbelier

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