app/django/views/decorators/gzip.py
author Lennard de Rijk <ljvderijk@gmail.com>
Tue, 11 Aug 2009 15:56:55 -0700
changeset 2759 5a8bd9d7725c
parent 54 03e267d67478
permissions -rw-r--r--
Set ASCII-only cleaner for first and last name when dealing with roles.

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