Fixed settings.py and minor edit to base.html