Skip to content

Instantly share code, notes, and snippets.

HOW TO REVERT A BIT OF A PREVIOUS COMMIT

First revert the full commit (puts it in index) but don't commit, where -n is short for --no-commit:

git revert -n <sha1 to reverse>

Then interactively remove ("destage") the reverted GOOD changes from the index, where -p is short for --patch:

git reset -p

Install Horizon with the Ironic UI Plugin

Prerequisites need to be installed if you're doing this on a brand new, empty VM. See:

http://docs.openstack.org/developer/horizon/quickstart.html

Install Horizon (note: this is in developer mode) first:

% git clone https://github.com/openstack/horizon.git
--- console-1.html 2016-02-04 14:55:53.000000000 +1100
+++ console-2.html 2016-02-04 14:56:04.000000000 +1100
@@ -1,10 +1,10 @@
| [EnvInject] - Loading node environment variables.
-| Building remotely on <a href='https://jenkins04.openstack.org/computer/devstack-trusty-rax-iad-7681445' class='model-link'>devstack-trusty-rax-iad-7681445</a> (devstack-trusty) in workspace /home/jenkins/workspace/gate-horizon-dsvm-integration
-| [gate-horizon-dsvm-integration] $ /bin/sh /tmp/hudson4233057097226431971.sh
-| Detailed logs: <a href='http://logs.openstack.org/77/274377/2/check/gate-horizon-dsvm-integration/93579aa//'>http://logs.openstack.org/77/274377/2/check/gate-horizon-dsvm-integration/93579aa//</a>
-| [gate-horizon-dsvm-integration] $ /bin/sh /tmp/hudson6555874958878424350.sh
+| Building remotely on <a href='https://jenkins01.openstack.org/computer/devstack-trusty-internap-nyj01-7694888' class='model-link'>devstack-trusty-internap-nyj01-7694888</a> (devstack-trusty) in workspace /home/jenkins/workspace/gate-ho
@r1chardj0n3s
r1chardj0n3s / django-setup.rst
Created August 20, 2012 01:04
How to set up Django

A Django site has a few components:

  • the core software and 3rd party modules (installed with pip into a virtualenv)
  • settings.py (identified by the DJANGO_SETTINGS_MODULE environment variable) known as "the settings file"
  • manage.py (which basically takes over from django-admin once your site is created)
  • urls.py (referenced by settings file)
  • the apps you create and 3rd party apps
  • static content to support the site

Optionally your site may also have: