yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #50976
[Bug 1582298] [NEW] Django compressor cannot find custom theme templates
Public bug reported:
Looks like django compressor can't find templates files from custom
theme. When I try to run .manage.py compress I have the following
errors:
`Non-existent template at:
/home/paul/horizon/openstack_dashboard/themes/custom/templates/header/_header.html`
And Horizon can find that template because I see that overriden page has
been changed.
If I run it with material theme with followinf settings:
AVAILABLE_THEMES = [
('custom', 'Custom', 'themes/custom'),
('material', 'Material', 'themes/material')
]
DEFAULT_THEME = 'material'
I will get the following errors:
Non-existent template at: /home/paul/horizon/openstack_dashboard/themes/material/templates/header/_header.html
Non-existent template at: /home/paul/horizon/openstack_dashboard/themes/material/templates/auth/_splash.html
Non-existent template at: /home/paul/horizon/openstack_dashboard/themes/material/templates/horizon/_sidebar.html
Non-existent template at: /home/paul/horizon/openstack_dashboard/themes/material/templates/header/_brand.html
If I remove DEFAULT_THEME and AVAILABLE_THEMES consts, there is no
errors.
** Affects: horizon
Importance: High
Assignee: Diana Whitten (hurgleburgler)
Status: Confirmed
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1582298
Title:
Django compressor cannot find custom theme templates
Status in OpenStack Dashboard (Horizon):
Confirmed
Bug description:
Looks like django compressor can't find templates files from custom
theme. When I try to run .manage.py compress I have the following
errors:
`Non-existent template at:
/home/paul/horizon/openstack_dashboard/themes/custom/templates/header/_header.html`
And Horizon can find that template because I see that overriden page
has been changed.
If I run it with material theme with followinf settings:
AVAILABLE_THEMES = [
('custom', 'Custom', 'themes/custom'),
('material', 'Material', 'themes/material')
]
DEFAULT_THEME = 'material'
I will get the following errors:
Non-existent template at: /home/paul/horizon/openstack_dashboard/themes/material/templates/header/_header.html
Non-existent template at: /home/paul/horizon/openstack_dashboard/themes/material/templates/auth/_splash.html
Non-existent template at: /home/paul/horizon/openstack_dashboard/themes/material/templates/horizon/_sidebar.html
Non-existent template at: /home/paul/horizon/openstack_dashboard/themes/material/templates/header/_brand.html
If I remove DEFAULT_THEME and AVAILABLE_THEMES consts, there is no
errors.
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1582298/+subscriptions
Follow ups