ensure correct django settings are used