Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Separate lists for build-in and external plugins in settings.py
Cezary Miącz63b76d688b3d
diff --git a/saleor/settings.py b/saleor/settings.pyindex 1175c990a4..6ac3d4e2e4 100644--- a/saleor/settings.py+++ b/saleor/settings.py@@ -558,7 +558,7 @@ GRAPHENE = {],}-PLUGINS = [+BUILTIN_PLUGINS = ["saleor.plugins.avatax.plugin.AvataxPlugin","saleor.plugins.vatlayer.plugin.VatlayerPlugin","saleor.plugins.webhook.plugin.WebhookPlugin",@@ -577,13 +577,16 @@ PLUGINS = []# Plugin discovery+EXTERNAL_PLUGINS = []installed_plugins = pkg_resources.iter_entry_points("saleor.plugins")for entry_point in installed_plugins:plugin_path = "{}.{}".format(entry_point.module_name, entry_point.attrs[0])- if plugin_path not in PLUGINS:+ if plugin_path not in EXTERNAL_PLUGINS:if entry_point.name not in INSTALLED_APPS:INSTALLED_APPS.append(entry_point.name)- PLUGINS.append(plugin_path)+ EXTERNAL_PLUGINS.append(plugin_path)++PLUGINS = BUILTIN_PLUGINS + EXTERNAL_PLUGINSif (not DEBUG