make plugin path a setting

This commit is contained in:
Matthias 2021-09-18 02:08:33 +02:00
parent fc3188513b
commit ca1fce4cf3
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
2 changed files with 3 additions and 1 deletions

View File

@ -650,6 +650,8 @@ MESSAGE_TAGS = {
} }
# Plugins # Plugins
PLUGIN_URL = 'plugin'
INTEGRATION_PLUGINS = inventree_plugins.load_integration_plugins() INTEGRATION_PLUGINS = inventree_plugins.load_integration_plugins()
INTEGRATION_PLUGIN_SETTINGS = {} INTEGRATION_PLUGIN_SETTINGS = {}

View File

@ -179,7 +179,7 @@ urlpatterns = [
url(r'^api-doc/', include_docs_urls(title='InvenTree API')), url(r'^api-doc/', include_docs_urls(title='InvenTree API')),
# plugins # plugins
url(r'^plugin/', include(interation_urls)), url(f'^{settings.PLUGIN_URL}/', include(interation_urls)),
url(r'^markdownx/', include('markdownx.urls')), url(r'^markdownx/', include('markdownx.urls')),
] ]