Skip to content
simone edited this page Jun 30, 2012 · 6 revisions
export CKHOME=/your/composite/project/home

SO requirements

sudo apt-get install python-virtualenv subversion
sudo pip install virtualenvwrapper

prepare virtualenv and project dirs

mkvirtualenv compositekey
mkdir -p $CKHOME

install django 1.4 trunk in develop mode

cd $CKHOME
svn co http://code.djangoproject.com/svn/django/tags/releases/1.4/ django14
pip install -e ./django14 

install django-compositekey in develop mode

git clone git://github.com/simone/django-compositekey.git
pip install -e django-compositekey

join to the django test suite

cd django-compositekey/
svn co http://code.djangoproject.com/svn/django/tags/releases/1.4/tests djangotests/

run the composite suite

./cruntests.py --settings=test_sqlite
./cruntests.py --settings=test_pg
./cruntests.py --settings=test_mysql
./cruntests.py --settings=test_oracle

[postgres, mysql, oracle required the databases as configurated in the test_*.py configurations]

OPTIONAL

Ticket https://code.djangoproject.com/ticket/16317 patching/fixing a self relation "natural keys" issue

cd django14/
patch -p0 < ../django-compositekey/patchs/16317_get_by_natural_key.patch
cd ..

MYSQL SERVER (set utf8)

[client]
default-character-set = utf8

[mysqld]
character-set-server=utf8
collation-server=utf8_unicode_ci
init_connect='set collation_connection = utf8_unicode_ci;'