Skip to content

Commit 27c37d6

Browse files
authored
Merge pull request #313 from agateblue/290-warning
Fix #290: removed unused default_app_config to avoid deprecation warning
2 parents 5f83b35 + bc22110 commit 27c37d6

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

docs/bind_preferences_to_models.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,16 @@ an ``apps.py`` file, as follows:
7777
7878
Here, we use django's built-in ``AppConfig``, which is a convenient place to put this kind of logic.
7979

80-
To ensure this config is actually used by django, you'll also have to edit your app ``__init__.py``:
80+
To ensure this config is actually used by django, you'll also have to add it to your ``settings.py``:
8181

8282
.. code-block:: python
8383
84-
# yourapp/__init__.py
85-
default_app_config = 'yourapp.apps.YourAppConfig'
84+
INSTALLED_APPS = [
85+
# your other apps here
86+
#
87+
'yourapp.apps.YourAppConfig',
88+
'dynamic_preferences',
89+
]
8690
8791
.. warning::
8892

dynamic_preferences/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
__version__ = "1.17.0"
2-
default_app_config = "dynamic_preferences.apps.DynamicPreferencesConfig"

0 commit comments

Comments
 (0)