getattr() needed

We need `getattr()`, not `settings.__dict__.get` for this to work, at least on my Django 1.5 project.