Skip to content

template folder not installed with plugin #7414

Answered by 0Markus0
0Markus0 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

I have a fix for my problem.
I think the error was in the setup.py at packages=find_packages() . It seems that the method find_packages() cannot find the template folder. Can someone explain me why?

So I added a MANIFEST.in in the same directory as the setup.py which includes the templates folder and I add include_package_data = True in my setup.py.
This is the MANIFEST.in:

include netbox_littleadmin/templates/netbox_littleadmin/* 

So now when I install the plugin with pip install git+<github_url> the template folder is included.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@0Markus0
Comment options

@candlerb
Comment options

@0Markus0
Comment options

@candlerb
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by 0Markus0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants