def install_apps(sender, **kwargs):
    global INSTALLING
    if INSTALLING:
        return
    
    INSTALLING = True
    
    print "Installing apps ..."
    
    from django.conf import settings
    for app in settings.INSTALLED_APPS:
        if not app.startswith('django.') and (app != "djangoerp.core"):
            management = __import__("%s.management" % app, {}, {}, ["install"])
            try:
                install_func = management.install
                if callable(install_func):
                    print "Installing app %s" % app
                    install_func(sender, **kwargs)
            except AttributeError:
                pass
dataset/ETHPy150Open django-erp/django-erp/djangoerp/core/management.py/install_apps/original