Second attempt at a build hook

this time copied from:
https://openshift.redhat.com/community/forums/openshift/django-15