horizon/horizon
Thai Tran 35e47358f0 Fix bug where WEBROOT is not respected
The WEB_ROOT setting needs to be respected rather than assuming / as
the root of the application. Simiarly, we can not assume that STATIC_URL
is a sub url of the WEB_ROOT. They can be configured as two indepedent url.

Angular templates are loaded dynamically with Ajax, which requires an
absolute base path. We define those base paths as angular constants for
template use and future routing.

TO TEST, follow directions at:
  http://docs.openstack.org/developer/horizon/topics/settings.html#webroot

Co-Authored-By: Matt Borland <matt.borland@hp.com>
Co-Authored-By: Shaoquan Chen <sean.chen2@hp.com>
Co-Authored-By: Thai Tran <tqtran@us.ibm.com>

Change-Id: Ifcd459633682edc94b270019ce77e17d64bea22d
Closes-Bug: #1451681
2015-07-22 04:10:50 +00:00
..
browsers Fix Flake8 style warnings in horizon/ 2014-07-29 20:38:49 +00:00
conf Revert "Refactoring the exceptions lists" 2015-04-06 16:49:17 -05:00
contrib Datepicker locale support 2014-09-23 14:24:48 +00:00
forms Fix common misspellings 2015-03-23 14:38:32 +01:00
locale Imported Translations from Transifex 2015-07-15 06:04:55 +00:00
management Updating startpanel for pluggables 2015-01-14 16:11:00 -07:00
static Fix bug where WEBROOT is not respected 2015-07-22 04:10:50 +00:00
tables Merge "delete failed when object id with special char." 2015-07-14 21:29:00 +00:00
tabs Merge "Allow to hide tab title bar when only one tab is available" 2015-03-07 00:07:56 +00:00
templates Fix bug where WEBROOT is not respected 2015-07-22 04:10:50 +00:00
templatetags Refactor quota limit summary template 2015-05-26 11:39:52 +01:00
test Merge "delete failed when object id with special char." 2015-07-14 21:29:00 +00:00
utils Angular translation via babel (singular only) 2015-07-02 11:13:45 +10:00
workflows Fix setting Primary Project for new user once the project was created 2015-01-16 20:51:31 +03:00
__init__.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
base.py Made HorizonComponent class Python3 compatible 2015-05-19 20:09:11 +00:00
context_processors.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
decorators.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
exceptions.py Removed the '_safe_message' variable from the API exceptions 2015-05-06 15:33:10 +00:00
karma.conf.js JSCS cleanup - style guide cleanup for karma.config.js files 2015-06-24 10:18:28 -07:00
loaders.py Add Django-1.7 support 2015-03-18 08:42:10 +01:00
messages.py Uniquify horizon messages returned in a single response 2014-09-17 13:45:07 +00:00
middleware.py Horizon login page contains DOS attack mechanism 2014-12-08 16:38:37 -07:00
models.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
site_urls.py Applying auto-file-discovery partially 2015-06-29 16:04:14 -06:00
version.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
views.py Document and improve PageTitleMixin readability 2015-02-11 16:16:20 +00:00