Skip to content

Fix #290: removed unused default_app_config to avoid deprecation warning #313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions docs/bind_preferences_to_models.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::

Expand Down
1 change: 0 additions & 1 deletion dynamic_preferences/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
__version__ = "1.17.0"
default_app_config = "dynamic_preferences.apps.DynamicPreferencesConfig"
Loading