2005-10-09 08:55:08 +08:00
|
|
|
from django.middleware.gzip import GZipMiddleware
|
2015-01-28 20:35:27 +08:00
|
|
|
from django.utils.decorators import decorator_from_middleware
|
2005-10-09 08:55:08 +08:00
|
|
|
|
|
|
|
gzip_page = decorator_from_middleware(GZipMiddleware)
|
2011-01-08 22:55:19 +08:00
|
|
|
gzip_page.__doc__ = "Decorator for views that gzips pages if the client supports it."
|