Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1123)

Unified Diff: venv/Lib/site-packages/django/views/decorators/gzip.py

Issue 554060043: testMe
Patch Set: Created 2 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: venv/Lib/site-packages/django/views/decorators/gzip.py
===================================================================
new file mode 100644
--- /dev/null
+++ b/venv/Lib/site-packages/django/views/decorators/gzip.py
@@ -0,0 +1,5 @@
+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."
« no previous file with comments | « venv/Lib/site-packages/django/views/decorators/debug.py ('k') | venv/Lib/site-packages/django/views/decorators/http.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b