summaryrefslogtreecommitdiff
path: root/docs/topics/files.txt
diff options
context:
space:
mode:
authorVishal Lal <vish61@gmail.com>2014-04-02 08:08:20 +0000
committerTim Graham <timograham@gmail.com>2014-04-02 12:58:37 -0400
commitca93f02c621ea0f686e0bde3e4130e99116fd9d5 (patch)
tree05ff763eeb89b123819477aa89fed4696a7fc965 /docs/topics/files.txt
parent608e6eb2959c6e56e5c702ca0d15fa0e6c2eef16 (diff)
Fixed #22347 -- Unified FileSystemStorage documentation.
Thanks nliberg for the report.
Diffstat (limited to 'docs/topics/files.txt')
-rw-r--r--docs/topics/files.txt16
1 files changed, 2 insertions, 14 deletions
diff --git a/docs/topics/files.txt b/docs/topics/files.txt
index 154d5c8ebb..af7568e933 100644
--- a/docs/topics/files.txt
+++ b/docs/topics/files.txt
@@ -149,20 +149,8 @@ See :doc:`/ref/files/storage` for the file storage API.
The built-in filesystem storage class
-------------------------------------
-Django ships with a built-in ``FileSystemStorage`` class (defined in
-``django.core.files.storage``) which implements basic local filesystem file
-storage. Its initializer takes two arguments:
-
-====================== ===================================================
-Argument Description
-====================== ===================================================
-``location`` Optional. Absolute path to the directory that will
- hold the files. If omitted, it will be set to the
- value of your :setting:`MEDIA_ROOT` setting.
-``base_url`` Optional. URL that serves the files stored at this
- location. If omitted, it will default to the value
- of your :setting:`MEDIA_URL` setting.
-====================== ===================================================
+Django ships with a :class:`django.core.files.storage.FileSystemStorage` class
+which implements basic local filesystem file storage.
For example, the following code will store uploaded files under
``/media/photos`` regardless of what your :setting:`MEDIA_ROOT` setting is::