Public bug reported:

Openstack-dashboard configuration sets STATIC_ROOT to /usr/share
/openstack-dashboard/static and STATIC_URL to /static. This means that
the Apache configuration should use /usr/share/openstack-
dashboard/static and for url /static. You can check the setting value
with manage.py shell:

$ /usr/share/openstack-dashboard/manage.py shell
Python 2.7.3 (default, Feb 27 2014, 19:58:35) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from django.conf import settings; settings.STATIC_ROOT; settings.STATIC_URL
'/usr/share/openstack-dashboard/static'
'/static/'
>>> 

But /etc/apache2/conf.d/openstack-dashboard.conf uses /usr/share
/openstack-dashboard/openstack_dashboard/static/ as root for url
/static:

Alias /static /usr/share/openstack-dashboard/openstack_dashboard/static/

As a result, Apache won't serve the static files directory managed by
django (ie. with command manage.py collectstatic). (That static files
directory managed by django can be used by rm -rf'ing the static root
manually before running collectstatic to avoid problems caused by
circular symlinks described in #1326734).

** Affects: openstack-dashboard (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1326775

Title:
  Wrong apache configuration for openstack-dashboard

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openstack-dashboard/+bug/1326775/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to