Set DJANGO_SETTINGS_MODULE earlier--probably broke due to 1.6 upgrade.