More work on the DJANGO_SETTINGS_MODULE issue