horizon/django-openstack
Gabriel Hurley 26d08f9b33 Fixes LP bug 875231 -- use tenant name instead of id for dropdown. 2011-10-27 15:23:41 -07:00
..
django_openstack Fixes LP bug 875231 -- use tenant name instead of id for dropdown. 2011-10-27 15:23:41 -07:00
LICENSE Began refactoring django_nova into django_openstack and submodules 2011-05-12 14:25:06 -07:00
Makefile pull in build changes from server 2011-06-29 08:23:47 -07:00
README Update django-openstack/README 2011-10-27 13:23:33 -07:00
bootstrap.py Began refactoring django_nova into django_openstack and submodules 2011-05-12 14:25:06 -07:00
buildout.cfg updating requires and dependencies for Glance and Quantum to git from LP 2011-09-17 08:57:45 -07:00
setup.py adding version to project, setting up autobuild of docs with ./run_tests.sh --docs 2011-10-27 13:23:39 -07:00

README

Django-OpenStack
---------------------

The Django-OpenStack 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 django-openstack module.

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



Getting Started
---------------

Django-OpenStack 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 django-openstack 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 django_openstack by setting
NOSE_WITH_COVERAGE:

  $ NOSE_WITH_COVERAGE=true bin/test

Get even better coverage info by running coverage directly:

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