settings.py was not turning debug off