Use django.utils.module_loading.autodiscover
#57
Labels
🏋️ improvement
Enhancements or optimizations to existing functionality
🧁 needs baking
Requires more time for consideration or development before further action
Instead of the custom module loading code included in this library, it might be better to utilize the utility included in Django for this. It's what the admin uses to autodiscover and import all
admin
modules in installed apps.https://github.com/django/django/blob/main/django/utils/module_loading.py
The text was updated successfully, but these errors were encountered: