next stab at fixing settings.py