refactoring settings.py