Fixed settings.py to correctly set up template file locations for all cases.