Added allowed hosts to settings.py to fix 400 bad requests issue.