updated with fix to problem using ALLOWED_HOSTS