app/django/views/decorators/gzip.py
author Sverre Rabbelier <srabbelier@gmail.com>
Sun, 16 Nov 2008 22:11:16 +0000
changeset 491 e13da520d063
parent 54 03e267d67478
permissions -rw-r--r--
Improved public page link text Instead of putting the name of the entity in the link text to the public page, a way better solution is to put static text there.

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