2005-10-09 08:55:08 +08:00
|
|
|
from django.utils.decorators import decorator_from_middleware
|
|
|
|
from django.middleware.gzip import GZipMiddleware
|
|
|
|
|
|
|
|
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."
|