Use unittest2's module hooks for setting up the django environment.