Skip to content

Plugin requiring its own collectstatic #459

Answered by tobiasge
dmcken asked this question in Getting Help
Discussion options

You must be logged in to vote

Hello,
I converted this to a discussion. I don't think this is an actual bug.

What is happening is this: When you run collectstatic in your Dockerfile the plugin is not loaded because you didn't include a config file that does just that.

Add the following line to your Dockerfile before the collectstatic line:

COPY configuration/load_plugin.py /etc/netbox/config/load_plugin.py

The file configuration/load_plugin.py should contain the plugin configuration:

PLUGINS = ['nextbox_ui_plugin']

PLUGINS_CONFIG = {
    'nextbox_ui_plugin': {
         # The settings you want
    }
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dmcken
Comment options

Answer selected by ryanmerolle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #458 on March 05, 2021 08:03.