diff --git a/README.rst b/README.rst index 74f480d..6ec3461 100644 --- a/README.rst +++ b/README.rst @@ -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 ************** diff --git a/watchman/settings.py b/watchman/settings.py index 35938d2..defe08a 100644 --- a/watchman/settings.py +++ b/watchman/settings.py @@ -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