Tidied up settings.py