Fix tests settings for Django 1.4.x.