Since Django 3.2 it is not necessary anymore to declare a default_app_config is only a single app config is present in the apps.py.
With that declaration, Django throws deprecation warnings like so:
/venv/lib/python3.8/site-packages/django/apps/registry.py:91: RemovedInDjango41Warning: 'pattern_library' defines default_app_config = 'pattern_library.apps.PatternLibraryAppConfig'. Django now detects this configuration automatically. You can remove default_app_config.
Describe the solution you'd like
Only define default_app_config for Django versions before 3.2.
Is your proposal related to a problem?
Since Django 3.2 it is not necessary anymore to declare a
default_app_config
is only a single app config is present in theapps.py
.With that declaration, Django throws deprecation warnings like so:
Describe the solution you'd like
Only define
default_app_config
for Django versions before 3.2.See also https://docs.djangoproject.com/en/3.2/releases/3.2/#automatic-appconfig-discovery