• en
  • Language: fr
  • dev
  • Documentation version: 1.8

Code source de django.views.decorators.gzip

from django.middleware.gzip import GZipMiddleware
from django.utils.decorators import decorator_from_middleware

gzip_page = decorator_from_middleware(GZipMiddleware)
gzip_page.__doc__ = "Decorator for views that gzips pages if the client supports it."
Back to Top