From e0dc0b0c4127ce93648b0ec7f4cfc5cea5081fc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20B=C3=A4chtold?= Date: Fri, 6 May 2016 10:15:50 +0200 Subject: [PATCH] Fix code examples in the optimization chapter of the documentation. --- docs/optimizations/apache.txt | 6 +++--- docs/optimizations/lighttpd.txt | 6 +++--- docs/optimizations/nginx.txt | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/optimizations/apache.txt b/docs/optimizations/apache.txt index 376787f..5edc02b 100644 --- a/docs/optimizations/apache.txt +++ b/docs/optimizations/apache.txt @@ -51,20 +51,20 @@ Example: .. literalinclude:: /../demo/demoproject/settings.py :language: python - :lines: 64-71 + :lines: 63-70 Then set ``django_downloadview.apache.XSendfileMiddleware`` as ``DOWNLOADVIEW_BACKEND``: .. literalinclude:: /../demo/demoproject/settings.py :language: python - :lines: 77 + :lines: 79 Then register as many ``DOWNLOADVIEW_RULES`` as you wish: .. literalinclude:: /../demo/demoproject/settings.py :language: python - :lines: 80, 85-87, 93, 103 + :lines: 84, 92-100, 110 Each item in ``DOWNLOADVIEW_RULES`` is a dictionary of keyword arguments passed to the middleware factory. In the example above, we capture responses by diff --git a/docs/optimizations/lighttpd.txt b/docs/optimizations/lighttpd.txt index a75ba4f..333c639 100644 --- a/docs/optimizations/lighttpd.txt +++ b/docs/optimizations/lighttpd.txt @@ -57,20 +57,20 @@ Example: .. literalinclude:: /../demo/demoproject/settings.py :language: python - :lines: 64-71 + :lines: 63-70 Then set ``django_downloadview.lighttpd.XSendfileMiddleware`` as ``DOWNLOADVIEW_BACKEND``: .. literalinclude:: /../demo/demoproject/settings.py :language: python - :lines: 78 + :lines: 80 Then register as many ``DOWNLOADVIEW_RULES`` as you wish: .. literalinclude:: /../demo/demoproject/settings.py :language: python - :lines: 80, 94-96, 102, 103 + :lines: 84, 101-110 Each item in ``DOWNLOADVIEW_RULES`` is a dictionary of keyword arguments passed to the middleware factory. In the example above, we capture responses by diff --git a/docs/optimizations/nginx.txt b/docs/optimizations/nginx.txt index 05243fc..6fcd359 100644 --- a/docs/optimizations/nginx.txt +++ b/docs/optimizations/nginx.txt @@ -52,20 +52,20 @@ Example: .. literalinclude:: /../demo/demoproject/settings.py :language: python - :lines: 64-71 + :lines: 63-70 Then set ``django_downloadview.nginx.XAccelRedirectMiddleware`` as ``DOWNLOADVIEW_BACKEND``: .. literalinclude:: /../demo/demoproject/settings.py :language: python - :lines: 75 + :lines: 76 Then register as many ``DOWNLOADVIEW_RULES`` as you wish: .. literalinclude:: /../demo/demoproject/settings.py :language: python - :lines: 80, 81-84, 103 + :lines: 84-89 Each item in ``DOWNLOADVIEW_RULES`` is a dictionary of keyword arguments passed to the middleware factory. In the example above, we capture responses by