Allow template loading on custom added panel?

asked 2015-08-19 07:24:10 -0500

Filip Dimitrovski gravatar image

I have added my custom panel to the "Project -> Compute" group as follows (and it works!!!):

PANEL = 'mycustompanel'
PANEL_GROUP = 'compute'
ADD_PANEL = 'mycustomapp.panel.MyCustomPanel'

However, Django cannot recognize my HTML templates that are inside mycustomapp/templates/. You can see the exception:

TemplateDoesNotExist at /project/mycustompanel/
/usr/share/vapour-dashboard/.venv/lib/python2.7/site-packages/django/template/ in find_template, line 136

I assume horizon.loaders.TemplateLoader does not include mycustomapp, even though it should (because it's an installed app and because there is a custom panel that uses it).

edit retag flag offensive close merge delete


hi, Have you solved this problem? I also met the same thing, may you please give me some advice about that? thanks.

chansonzhang gravatar imagechansonzhang ( 2016-11-03 22:35:39 -0500 )edit