web/lib/django/views/decorators/gzip.py
changeset 38 77b6da96e6f1
parent 0 0d40e90630ef
equal deleted inserted replaced
37:8d941af65caf 38:77b6da96e6f1
       
     1 "Decorator for views that gzips pages if the client supports it."
       
     2 
       
     3 from django.utils.decorators import decorator_from_middleware
       
     4 from django.middleware.gzip import GZipMiddleware
       
     5 
       
     6 gzip_page = decorator_from_middleware(GZipMiddleware)