settings: add settings for CAPTCHA accessibility

To enable audio support for django-simple-captcha for accessibility
purposes, you need to provide the full paths to the flite and sox
binaries, so add these settings (commented out by default to avoid extra
dependencies for those that don't need it).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2018-10-16 10:07:50 +13:00
parent 4acb0b2c91
commit 0bfb98971c
2 changed files with 8 additions and 0 deletions

View File

@ -238,6 +238,10 @@ RABBIT_BACKEND = 'rpc://layersrabbit/'
# Used for fetching repo # Used for fetching repo
PARALLEL_JOBS = "4" PARALLEL_JOBS = "4"
# Install flite & sox and set these to enable audio for CAPTCHA challenges (for accessibility)
#CAPTCHA_FLITE_PATH = "/usr/bin/flite"
#CAPTCHA_SOX_PATH = "/usr/bin/sox"
# Full path to directory to store logs for dynamically executed tasks # Full path to directory to store logs for dynamically executed tasks
TASK_LOG_DIR = "/tmp/layerindex-task-logs" TASK_LOG_DIR = "/tmp/layerindex-task-logs"

View File

@ -237,6 +237,10 @@ RABBIT_BACKEND = 'rpc://'
# Used for fetching repo # Used for fetching repo
PARALLEL_JOBS = "4" PARALLEL_JOBS = "4"
# Install flite & sox and set these to enable audio for CAPTCHA challenges (for accessibility)
#CAPTCHA_FLITE_PATH = "/usr/bin/flite"
#CAPTCHA_SOX_PATH = "/usr/bin/sox"
# Full path to directory to store logs for dynamically executed tasks # Full path to directory to store logs for dynamically executed tasks
TASK_LOG_DIR = "/tmp/layerindex-task-logs" TASK_LOG_DIR = "/tmp/layerindex-task-logs"