Did I find the right examples for you? yes no

All Samples(10)  |  Call(5)  |  Derive(0)  |  Import(5)
Auto-discover INSTALLED_APPS module.py 

        def autodiscover(module):
    """ Auto-discover INSTALLED_APPS module.py """
    from django.conf import settings
    for app in settings.INSTALLED_APPS:
        mod = import_module(app)
        try: 
            import_module('%s.%s' % (app, module))
        except ImportError:
            # Decide whether to bubble up this error. If the app just
            # doesn't have the module, we can ignore the error
            # attempting to import it, otherwise we want it to bubble up.
            if module_has_submodule(mod, module):
                print '%s module caused this error:' % module
                raise
        


src/c/o/confine-controller-0.10.5/controller/apps/permissions/__init__.py   confine-controller(Download)
from controller.utils import autodiscover
 
from .options import *
 
# Autodiscover permissions.py
# Making sure models are loaded first in order to avoid circular imports !
autodiscover('models')
autodiscover('permissions')

src/c/o/confine-controller-0.10.5/controller/apps/notifications/__init__.py   confine-controller(Download)
from controller.utils import autodiscover
 
from .options import Notification
 
 
# Autodiscover notifications.py
# Making sure models are loaded first in order to avoid circular imports !
#autodiscover('models')
autodiscover('notifications')

src/c/o/confine-controller-0.10.5/controller/apps/slices/models.py   confine-controller(Download)
 
from controller.models.fields import MultiSelectField, NullableCharField
from controller.utils import autodiscover
from controller.core.validators import (validate_net_iface_name, validate_prop_name,
        validate_sha256, validate_file_extensions, validate_name)
 
# Autodiscover sliver ifaces
autodiscover('ifaces')
IFACE_TYPE_CHOICES = tuple(
    (name, name.capitalize()) for name in Sliver.get_registered_ifaces() )

src/c/o/confine-controller-0.10.5/controller/apps/resources/models.py   confine-controller(Download)
from django.utils.functional import lazy
 
from controller.utils import autodiscover
from controller.utils.functional import cached
 
 
 
autodiscover('resources')
 
for producer_model in ResourcePlugin.get_producers_models():

src/c/o/confine-controller-0.10.5/controller/apps/api/options.py   confine-controller(Download)
 
from controller.models.utils import is_singleton
from controller.utils import autodiscover
 
from .utils import link_header