revsys / django-health-check

a pluggable app that runs a full check on the deployment, using a number of plugins to check e.g. database, queue server, celery processes, etc.
https://readthedocs.org/projects/django-health-check/
MIT License
1.22k stars 191 forks source link

Allow Configuration of Test Folder Path #421

Open striveforbest opened 6 months ago

striveforbest commented 6 months ago

Description:

This pull request addresses an issue where the library attempts to create a folder named health_check_storage_test within the current directory. However, in many setups, users may lack the necessary permissions to do so. To resolve this, the pull request introduces a feature that enables users to easily configure the folder/path through a setting.

Changes:

Added support for configuring the folder/path using a setting.

Users can now define the desired folder/path in their Django settings by adding the following line:
HEALTH_CHECK_TEST_FOLDER = '/tmp'

This enhancement offers greater flexibility and ease of use for users, allowing them to specify a folder/path that suits their setup.

striveforbest commented 6 months ago

Oh, this won't work. I'll work on a different solution.