etc/toolbox.py
def import_project_modules(module_name):
    """Imports modules from registered apps using given module name
    and returns them as a list.

    :param str module_name:
    :rtype: list

    """
    from django.conf import settings

    submodules = []
    for app in settings.INSTALLED_APPS:
        module = import_app_module(app, module_name)
        if module is not None:
            submodules.append(module)

    return submodules
def import_project_modules(module_name):
    from django.conf import settings

    submodules = []
    for app in settings.INSTALLED_APPS:
        module = import_app_module(app, module_name)
        if module is not None:
            submodules.append(module)

    return submodules
def import_project_modules ( module_name ) : from django . conf import settings submodules = [ ] for app in settings . INSTALLED_APPS : module = import_app_module ( app , module_name ) if module is not None : submodules . append ( module ) return submodules
Imports modules from registered apps using given module name
    and returns them as a list.

    :param str module_name:
    :rtype: list
Imports modules from registered apps using given module name and returns them as a list .