app/django/views/decorators/gzip.py
author Todd Larsen <tlarsen@google.com>
Wed, 13 Aug 2008 20:33:25 +0000
changeset 68 0ae506b51e97
parent 54 03e267d67478
permissions -rw-r--r--
Relative URL path structure example for Organization admin role, for a specific Program. View mock-up form will be added later.

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