Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
returns True if app is installed 

        def is_installed(app):
    """ returns True if app is installed """
    from django.conf import settings
    return app in settings.INSTALLED_APPS
        


src/c/o/confine-controller-0.10.5/controller/tasks.py   confine-controller(Download)
 
from .settings import CLEAN_ORPHAN_FILES
from .utils.apps import is_installed
 
@periodic_task(name="controller.delete_orphan_files", run_every=crontab(minute=0, hour=0), enabled=False)
    if not CLEAN_ORPHAN_FILES:
        return # task disabled
    if not is_installed('django_orphaned'):
        raise ImproperlyConfigured("'delete_orphan' task requires django-orphan "\
             "app and is not installed.")