You might want to add this instead to test settings: https://github.com/edx/edx-platform/blob/master/lms/envs/test.py