equal
deleted
inserted
replaced
|
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) |