2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-04-27 21:26:43 +00:00

Enable plugins for CI testing

This commit is contained in:
Oliver 2022-01-11 14:13:41 +11:00
parent b31110bd2b
commit 9235c46b9e
3 changed files with 13 additions and 6 deletions

View File

@ -14,18 +14,15 @@ database:
# --- Available options: ---
# ENGINE: Database engine. Selection from:
# - sqlite3
# - mysql
# - postgresql
# - sqlite3
# NAME: Database name
# USER: Database username (if required)
# PASSWORD: Database password (if required)
# HOST: Database host address (if required)
# PORT: Database host port (if required)
# --- Example Configuration - sqlite3 ---
# ENGINE: sqlite3
# NAME: '/home/inventree/database.sqlite3'
# --- Example Configuration - MySQL ---
#ENGINE: mysql
@ -42,6 +39,10 @@ database:
#PASSWORD: inventree_password
#HOST: 'localhost'
#PORT: '5432'
# --- Example Configuration - sqlite3 ---
# ENGINE: sqlite3
# NAME: '/home/inventree/database.sqlite3'
# Select default system language (default is 'en-us')
language: en-us

View File

@ -6,11 +6,16 @@ title: Plugins
The InvenTree server code supports an extensible plugin architecture, allowing custom plugins to be integrated directly into the database server. This allows development of complex behaviours which are decoupled from core InvenTree code.
InvenTree built-in plugins are located in the directory `./InvenTree/plugin/builtin`.
Custom plugins should be placed in the directory `./InvenTree/plugins`.
Plugins can be added from multiple sources:
- InvenTree built-in plugins are located in the directory `./InvenTree/plugin/builtin`.
- Custom plugins should be placed in the directory `./InvenTree/plugins`.
- Plugins can be installed via PIP (python package manager)
Plugins are discovered and loaded when the server is started.
!!! info "Enable Plugin Support"
To enable custom plugins, plugin support must be activated in the [server configuration](../start/config.md).
Multiple plugins are supported:
- [Reporting plugins](./plugins/report.md)

View File

@ -46,6 +46,7 @@ The following basic options are available:
| --- | --- | --- | --- |
| INVENTREE_DEBUG | debug | Enable debug mode | True |
| INVENTREE_LOG_LEVEL | log_level | Set level of logging to terminal | WARNING |
| INVENTREE_PLUGINS_ENABLED | plugins_enabled | Enable plugin support | False |
## Secret Key