Fix key assignment in settings.py