From 7ec9618386ec663624a9f8373b88089dced6f4c2 Mon Sep 17 00:00:00 2001 From: Bryan Brancotte <bryan.brancotte@pasteur.fr> Date: Tue, 15 Feb 2022 16:44:01 +0100 Subject: [PATCH] list more settings --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b961e9b..eaed2c0 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,14 @@ Quick start 3. Adjust settings ```py - AUTOCOMPLETE_MIN_LENGTH = 3 - AUTOCOMPLETE_MIN_SIMILARITY = 0.1 + AUTOCOMPLETE_MIN_LENGTH = 4 + AUTOCOMPLETE_MIN_SIMILARITY = 0.3 + AUTOCOMPLETE_LIMIT = 10 + CAN_BE_INDEXED_BY_AUTOCOMPLETE_FUNCTION_NAME = "can_be_indexed_by_autocomplete" + AUTOCOMPLETE_PERSISTENT_VARIABLE_GETTER_SETTER = ( + "my_app.blabla.get_fcn", + "my_app.blabla.set_fcn", + ) ``` 4. If you want to use rest_framework for querying words, include the URLconf in your project urls.py like this: -- GitLab