horizon/horizon
jakedahn e7d7643e3b Fixing floating ip allocation.
Change-Id: Ie229923384fdaf59e5141cf781bfb6f8dc8f30fb
2011-12-14 16:27:36 -08:00
..
horizon Fixing floating ip allocation. 2011-12-14 16:27:36 -08:00
LICENSE Re-architects the OpenStack Dashboard for modularity and extensibility. 2011-11-07 12:59:21 -08:00
Makefile Remove Debian bits and let the debian package take care of it. 2011-11-09 12:52:57 -05:00
README Re-architects the OpenStack Dashboard for modularity and extensibility. 2011-11-07 12:59:21 -08:00
bootstrap.py Re-architects the OpenStack Dashboard for modularity and extensibility. 2011-11-07 12:59:21 -08:00
buildout.cfg Cleans up error handling for index view api calls. Prevents 500 errors. 2011-12-09 13:37:59 -08:00
setup.py Fix templates installation 2011-12-06 18:10:34 +01:00

README

========================================
Horizon: The OpenStack Dashboard Project
========================================

The Horizon project is a Django module that is used to provide web based
interactions with an OpenStack cloud.

There is a reference implementation that uses this module located at:

    http://launchpad.net/horizon

It is highly recommended that you make use of this reference implementation
so that changes you make can be visualized effectively and are consistent.
Using this reference implementation as a development environment will greatly
simplify development of the ``horizon`` module.

Of course, if you are developing your own Django site using Horizon, then
you can disregard this advice.


Getting Started
===============

Horizon uses Buildout (http://www.buildout.org/) to manage local development.
To configure your local Buildout environment first install the following
system-level dependencies:

  * python-dev
  * git
  * bzr

Then instantiate buildout with::

  $ python bootstrap.py
  $ bin/buildout

This will install all the dependencies of Horizon and provide some useful
scripts in the ``bin/`` directory:

  bin/python provides a python shell for the current buildout.
  bin/django provides django functions for the current buildout.


You should now be able to run unit tests as follows::

  $ bin/django test

or::

  $ bin/test

You can run unit tests with code coverage on Horizon by setting
``NOSE_WITH_COVERAGE``::

  $ NOSE_WITH_COVERAGE=true bin/test

Get even better coverage info by running coverage directly::

  $ coverage run --branch --source horizon bin/django test horizon && coverage html