def get_installed_apps():
installed_apps = []
for app_config in apps.get_app_configs():
try:
installed_apps.append([app_config.name,
get_distribution(app_config.name).version])
except:
pass
return installed_apps
文章目录