Hotfix for Python 2.6 and DEBUG=False.

Fixed anonymous format values for Python 2.6 and updated settings.py
to reflect latest changes with ALLOWED_HOSTS.
Merge branch 'hotfix/0.9.6'