horizon missing static dir for angular cookies

Bug #1416004 reported by Eric Peterson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Invalid
Undecided
Wu Wenxiang

Bug Description

I have found issues where the angular cookies js file is not being found, unless I include this in my settings file:

import xstatic.pkg.angular_cookies
...

STATICFILES_DIRS.append(('horizon/lib/angular',
            xstatic.main.XStatic(xstatic.pkg.angular_cookies).base_dir))

description: updated
description: updated
Revision history for this message
Matthias Runge (mrunge) wrote :

Erik, please make sure you updated XStatic-Angular to latest version, and run manage.py collectstatic please.

Revision history for this message
Matthias Runge (mrunge) wrote :

oops, sorry, I meant Eric not Erik. Honestly sorry!

Revision history for this message
Eric Peterson (ericpeterson-l) wrote :

Matthias,
When I run that, you are correct that the file gets picked up correctly:

$ find static/ |grep cookies
static/horizon/lib/angular/angular-cookies.js

It's when I try to run horizon in that old demo dashboard setup ( based upon https://github.com/gabrielhurley/horizon_demo) that this fails.

It could be that what I have is not technically supported. Right now I just add the lines above into my settings.py and stuff seems to work ok. I'd understand closing the bug as not supported, but I believe it might be better to share this info in case it really is a bug/problem.

Changed in horizon:
assignee: nobody → Wu Wenxiang (wu-wenxiang)
Changed in horizon:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.