Helper to extract Django settings from a module.