diff --git a/docs/bind_preferences_to_models.rst b/docs/bind_preferences_to_models.rst index 13613e6..0ecf5cd 100644 --- a/docs/bind_preferences_to_models.rst +++ b/docs/bind_preferences_to_models.rst @@ -77,12 +77,16 @@ an ``apps.py`` file, as follows: Here, we use django's built-in ``AppConfig``, which is a convenient place to put this kind of logic. -To ensure this config is actually used by django, you'll also have to edit your app ``__init__.py``: +To ensure this config is actually used by django, you'll also have to add it to your ``settings.py``: .. code-block:: python - # yourapp/__init__.py - default_app_config = 'yourapp.apps.YourAppConfig' + INSTALLED_APPS = [ + # your other apps here + # … + 'yourapp.apps.YourAppConfig', + 'dynamic_preferences', + ] .. warning:: diff --git a/dynamic_preferences/__init__.py b/dynamic_preferences/__init__.py index 2248b25..3024410 100644 --- a/dynamic_preferences/__init__.py +++ b/dynamic_preferences/__init__.py @@ -1,2 +1 @@ __version__ = "1.17.0" -default_app_config = "dynamic_preferences.apps.DynamicPreferencesConfig"