Setup postgresql server
=======================

Configure your local postgresql server to accept authenticated connections via socket by adding this line:

    local all all md5

to your pg_hba.conf file.

Create a the user 'user' with password 'pass' by using the command:

    createuser -lPd user

Also make sure you create a database with the same name:

    createdb -O user user


Run tests
=========

Install Django 1.4.5 (in a virtualenv or via package manager), go into the provided package folder and run.

    python manage.py test dummy

this should fail with the error:

    IntegrityError: insert or update on table "auth_permission" violates foreign key constraint "content_type_id_refs_id_728de91f"
    DETAIL:  Key (content_type_id)=(3) is not present in table "django_content_type"


Workaround
==========

Edit settings.py and change the order of these two packages from:

    INSTALLED_APPS = (
        'django.contrib.auth',
        'django.contrib.contenttypes',
        ...

to:

    INSTALLED_APPS = (
        'django.contrib.contenttypes',
        'django.contrib.auth',
        ...

This should cause the tests to pass.
