def has_installed(app):
 return (app in getattr(settings, 'INSTALLED_APPS', []))

def has_installed ( app ) : return ( app in getattr ( settings , 'INSTALLED_APPS' , [ ] ) )
returns whether the app is installed in django .