Skip to content

Commit

Permalink
Added note to docs about the default location of filepond_uploads dir…
Browse files Browse the repository at this point in the history
… if the UPLOAD_TMP variable is not set.
  • Loading branch information
jcohen02 committed Mar 26, 2019
1 parent af9e5b3 commit 6441584
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# -- Project information -----------------------------------------------------

project = 'django-drf-filepond'
copyright = '2018, Jeremy Cohen, Imperial College London'
copyright = '2019, Jeremy Cohen, Imperial College London'
author = 'Jeremy Cohen'

# The short X.Y version
Expand Down
11 changes: 11 additions & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ variable to your settings file, e.g.::
DJANGO_DRF_FILEPOND_UPLOAD_TMP = os.path.join(BASE_DIR, 'filepond-temp-uploads')
...

.. note:: It is strongly recommended that you set
``DJANGO_DRF_FILEPOND_UPLOAD_TMP``. If you do not set this variable, the
app will set a default location for the storage of temporary uploads.
This is ``BASE_DIR/filepond_uploads`` where ``BASE_DIR`` is the variable
defined by default in an auto-generated Django settings file pointing to
the top-level directory of your Django project. If your settings do not
contain ``BASE_DIR`` the app will default to storing the
``filepond_uploads`` directory in the ``django-drf-filepond`` app
directory, wherever that is located. Note that this may be within the
``lib`` directory of a virtualenv.

3. Include the app urls into your main url configuration
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down

0 comments on commit 6441584

Please sign in to comment.