Use the DJANGO_SETTINGS_MODULE from the config var during compilation.