Angular code for openstack_dashboard is almost finished migrating to openstack_dashboard/static/app/. Previously, the root module of app (app.module.js) was explicitly included from _conf.html so that environment variables from Django could be captured in the 'horizon.app.conf' constant. This prevented auto-collection at the static/app/ level because app.module.js will be included twice (once from _conf.html, and again during auto-collection) It turns out that 'horizon.app.conf' is unnecessary as an Angular constant. It's only use is to initialize the 'horizon.conf' global provided by horizon.js. This patch refactors _conf.html to directly initialize horizon.conf. This removes the need for app.module.js to be included from _conf.html, which allows us to change the auto-collection directory to 'app/'. Now all files in horizon/static and openstack_dashboard/static/app are auto-collected, without including app.module.js twice. All new angular files are expected to live in one of these two locations, minimizing changes to static_settings.py to include new files for auto-collection Change-Id: I95b6f13c85eb08c875885812a7db054a5aa6e7c2 Partial-Bug: #1458697 Closes-Bug: #1477825
Horizon (OpenStack Dashboard)
Horizon is a Django-based project aimed at providing a complete
OpenStack Dashboard along with an extensible framework for building new
dashboards from reusable components. The
openstack_dashboard
module is a reference implementation of
a Django site that uses the horizon
app to provide
web-based interactions with the various OpenStack projects.
- Release management: https://launchpad.net/horizon
- Blueprints and feature specifications: https://blueprints.launchpad.net/horizon
- Issue tracking: https://bugs.launchpad.net/horizon
Using Horizon
See doc/source/topics/install.rst
about how to install
Horizon in your OpenStack setup. It describes the example steps and has
pointers for more detailed settings and configurations.
It is also available at http://docs.openstack.org/developer/horizon/topics/install.html.
Getting Started for Developers
doc/source/quickstart.rst
or http://docs.openstack.org/developer/horizon/quickstart.html
describes how to setup Horizon development environment and start
development.
Building Contributor Documentation
This documentation is written by contributors, for contributors.
The source is maintained in the doc/source
directory
using reStructuredText and
built by Sphinx
Building Automatically:
$ ./run_tests.sh --docs
Building Manually:
$ tools/with_venv.sh sphinx-build doc/source doc/build/html
Results are in the doc/build/html
directory