app/django/views/decorators/gzip.py
changeset 54 03e267d67478
equal deleted inserted replaced
53:57b4279d8c4e 54:03e267d67478
       
     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)