From 9e1bdadbec96f387191e132dcb9afd009d50c636 Mon Sep 17 00:00:00 2001 From: Ra Date: Sat, 2 Sep 2023 00:36:14 +0530 Subject: [PATCH] Added clarification about default config_filename in Limiter --- docs/examples.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/examples.md b/docs/examples.md index 1ee072e..e7ab5f6 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -56,6 +56,11 @@ You can always switch this during the lifetime of the limiter: limiter.enabled = False ``` +#### Note: config file is set to ".env" by default. Therefore, if you have a .env file setup for something else already, specify the config_filename parameter +```python +limiter = Limiter(key_func=get_remote_address, default_limits=["1/minute"], config_filename=".your_config_file") +``` + ## Use redis as backend for the limiter ```python