def check_apps(apps):
"""Check if a list of apps is entirely contained in the list of installed apps."""
for app in apps:
installed_apps = settings.INSTALLED_APPS
if app not in installed_apps:
raise CommandError('App %s not contained in INSTALLED_APPS %s'
% (app, settings.INSTALLED_APPS))
评论列表
文章目录