change default realm to use ALLOWED_HOSTS instead of the sites framework