app/django/views/decorators/gzip.py
author Sverre Rabbelier <sverre@rabbelier.nl>
Sat, 01 Aug 2009 15:37:58 -0700
changeset 2705 0b38d59d958f
parent 54 03e267d67478
permissions -rw-r--r--
Allow hosts to withdraw student projects

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