From 156587f39cb40a025457f4db0e3d81a1778bb37e Mon Sep 17 00:00:00 2001 From: Mandeep Gill Date: Sat, 10 Sep 2022 14:45:38 +0100 Subject: [PATCH] Fix param name of autodiscovery -> autodiscover The docs say to set `autodiscovery: False` in `settings.COMPONENTS` to disable autodiscovery, but in the `app_settings` code the field is called `autodiscover`. Cheers! --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 70342743..68321ade 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Read on to learn about the details! # Release notes -*Version 0.22* starts autoimporting all files inside components subdirectores, to simplify setup. An existing project might start to get AlreadyRegistered-errors because of this. To solve this, either remove your custom loading of components, or set "autodiscovery": False in settings.COMPONENTS. +*Version 0.22* starts autoimporting all files inside components subdirectores, to simplify setup. An existing project might start to get AlreadyRegistered-errors because of this. To solve this, either remove your custom loading of components, or set "autodiscover": False in settings.COMPONENTS. *Version 0.17* renames `Component.context` and `Component.template` to `get_context_data` and `get_template_name`. The old methods still work, but emit a deprecation warning. This change was done to sync naming with Django's class based views, and make using django-components more familiar to Django users. `Component.context` and `Component.template` will be removed when version 1.0 is released. @@ -396,7 +396,7 @@ If you specify all the component locations with the setting above and have a lot ```python COMPONENTS = { - "autodiscovery": False, + "autodiscover": False, } ```