Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -346,16 +346,10 @@ Using ``django.core.files.storage.default_storage``:
* Read the test file's contents
* Delete the test file

By default the test file gets written on the root of the django ``MEDIA_ROOT``. If for whatever reasons this path is not writable by the user that runs the application you can override it by setting ``WATCHMAN_STORAGE_PATH`` to a specific path.
Remember that this must be within the ``MEDIA_ROOT``, which by default is your project root. In ``settings.py``::

WATCHMAN_STORAGE_PATH = "/path_to_your_app/foo/bar/"

If the ``MEDIA_ROOT`` is already defined::

from os.path import join as joinpath
WATCHMAN_STORAGE_PATH = joinpath(MEDIA_ROOT, "foo/bar")
By default the test file gets written on the root of Django's default file storage. If for whatever reasons this path is not writable by the user that runs the application you can override it by setting ``WATCHMAN_STORAGE_PATH`` to a specific path (relative to default storage). In ``settings.py``::

WATCHMAN_STORAGE_PATH = "path/to/watchman"

Default checks
**************

Expand Down
2 changes: 1 addition & 1 deletion watchman/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

WATCHMAN_DISABLE_APM = getattr(settings, "WATCHMAN_DISABLE_APM", False)

WATCHMAN_STORAGE_PATH = getattr(settings, "WATCHMAN_STORAGE_PATH", settings.MEDIA_ROOT)
WATCHMAN_STORAGE_PATH = getattr(settings, "WATCHMAN_STORAGE_PATH", "")

if WATCHMAN_ENABLE_PAID_CHECKS:
DEFAULT_CHECKS = DEFAULT_CHECKS + PAID_CHECKS
Expand Down