fix test run in settings for django1.6