autodiscover() [source]
This function attempts to import an admin module in each installed application. Such modules are expected to register models with the admin.
Typically you won’t need to call this function directly as AdminConfig calls it when Django starts.
If you are using a custom AdminSite, it is common to import all of the ModelAdmin subclasses into your code and register them to the custom AdminSite. In that case, in order to disable auto-discovery, you should put 'django.contrib