Overhauled settings.py