Added localhost to ALLOWED_HOSTS.