♻️(plugins) rewrite plugin system as django app
This allow more flexibility around the installed plugins, this will allow to add models in plugins if needed.
This commit is contained in:
committed by
Sabrina Demagny
parent
4ced342062
commit
28fdee868d
@@ -217,6 +217,11 @@ class Base(Configuration):
|
||||
]
|
||||
|
||||
# Django's applications from the highest priority to the lowest
|
||||
INSTALLED_PLUGINS = values.ListValue(
|
||||
default=[],
|
||||
environ_name="INSTALLED_PLUGINS",
|
||||
environ_prefix=None,
|
||||
)
|
||||
INSTALLED_APPS = [
|
||||
# People
|
||||
"admin.apps.PeopleAdminConfig", # replaces 'django.contrib.admin'
|
||||
@@ -224,9 +229,10 @@ class Base(Configuration):
|
||||
"demo",
|
||||
"mailbox_manager.apps.MailboxManagerConfig",
|
||||
"mailbox_oauth2",
|
||||
*INSTALLED_PLUGINS,
|
||||
# Third party apps
|
||||
"drf_spectacular",
|
||||
"drf_spectacular_sidecar", # required for Django collectstatic discovery
|
||||
# Third party apps
|
||||
"corsheaders",
|
||||
"django_celery_beat",
|
||||
"django_celery_results",
|
||||
@@ -574,11 +580,6 @@ class Base(Configuration):
|
||||
environ_prefix=None,
|
||||
)
|
||||
)
|
||||
ORGANIZATION_PLUGINS = values.ListValue(
|
||||
default=[],
|
||||
environ_name="ORGANIZATION_PLUGINS",
|
||||
environ_prefix=None,
|
||||
)
|
||||
ORGANIZATION_METADATA_SCHEMA = values.Value(
|
||||
default=None,
|
||||
environ_name="ORGANIZATION_METADATA_SCHEMA",
|
||||
|
||||
Reference in New Issue
Block a user