fix to settings.py