jdelic / django-dbconn-retry

Patches Django to reconnect on a failed database connection once before failing. Helping with running Django ORM through HAProxy, for example.
BSD 3-Clause "New" or "Revised" License
75 stars 25 forks source link

Fix `RemovedInDjango41Warning` #6

Closed amureki closed 2 years ago

amureki commented 2 years ago

Greetings dear fellows. Thank you for the package!

This PR fixes Django 4.1 deprecation warning:

RemovedInDjango41Warning: 'django_dbconn_retry' defines default_app_config = 'django_dbconn_retry.DjangoIntegration'. However, Django's automatic detection did not find this configuration. You should move the default config class to the apps submodule of your application and, if this module defines several config classes, mark the default one with default = True.

Best, Rust

jdelic commented 2 years ago

merged in #7. Thank you all.