From 6f806b046a8d7b6cca9643a6bb30fe9788d19f8d Mon Sep 17 00:00:00 2001 From: hashlash Date: Wed, 23 Feb 2022 13:49:04 +0700 Subject: [PATCH] Fix password quotation docs - The `quote` function is inside `urllib.parse` module, not it's parent `urllib` module. - Use `quote` instead of `quote_plus` since the parsing in `defender.connections` use `unquote` instead of `unquote_plus`. --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 9ab2bbe..064699c 100644 --- a/README.rst +++ b/README.rst @@ -367,7 +367,7 @@ These should be defined in your ``settings.py`` file. * ``DEFENDER_REDIS_URL``\ : String: the redis url for defender. [Default: ``redis://localhost:6379/0``\ ] (Example with password: ``redis://:mypassword@localhost:6379/0``\ ) -* ``DEFENDER_REDIS_PASSWORD_QUOTE``\ : Boolean: if special character in redis password(like '@'), we can quote password(urllib.quote_plus("password!@#")), and set to True. +* ``DEFENDER_REDIS_PASSWORD_QUOTE``\ : Boolean: if special character in redis password (like '@'), we can quote password ``urllib.parse.quote("password!@#")``, and set to True. [Default: ``False``\ ] * ``DEFENDER_REDIS_NAME``\ : String: the name of your cache client on the CACHES django setting. If set, ``DEFENDER_REDIS_URL`` will be ignored. [Default: ``None``\ ]