DEBUG should have a default in settings.py
Some further changes to local settings template.