Skip to content

Commit

Permalink
Merge pull request #179 from johnthagen/storage-download-docs
Browse files Browse the repository at this point in the history
Fix StorageDownloadView code snippets
  • Loading branch information
Natim committed Apr 10, 2021
2 parents 3543a3b + a67f3dc commit cbd53d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/views/storage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ Given a storage:

.. literalinclude:: /../demo/demoproject/storage/views.py
:language: python
:lines: 1, 4-6
:lines: 1, 4-5

Setup a view to stream files in storage:

.. literalinclude:: /../demo/demoproject/storage/views.py
:language: python
:lines: 3-5, 10
:lines: 3-6, 8-9

The view accepts a ``path`` argument you can setup either in ``as_view`` or
via URLconfs:

.. literalinclude:: /../demo/demoproject/storage/urls.py
:language: python
:lines: 1-7, 8-10, 14
:lines: 1-6, 7-11, 17


************
Expand All @@ -56,7 +56,7 @@ uppercase:

.. literalinclude:: /../demo/demoproject/storage/views.py
:language: python
:lines: 3-5, 13-20
:lines: 3-5, 11-20


*************
Expand Down

0 comments on commit cbd53d8

Please sign in to comment.