made settings.py smarter