From ed05198c45f3a99c5f8b54c5030d606ccd42547e Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 9 Apr 2020 14:52:18 -0400 Subject: [PATCH] Add static file collection to plugins installation doc --- docs/plugins/index.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/plugins/index.md b/docs/plugins/index.md index 05f7cd15b..1f5587539 100644 --- a/docs/plugins/index.md +++ b/docs/plugins/index.md @@ -64,6 +64,15 @@ PLUGINS_CONFIG = { } ``` +### Collect Static Files + +Plugins may package static files to be served directly by the HTTP front end. Ensure that these are copied to the static root directory with the `collectstatic` management command: + +```no-highlight +(venv) $ cd /opt/netbox/netbox/ +(venv) $ python3 manage.py collectstatic +``` + ### Restart WSGI Service Restart the WSGI service to load the new plugin: