Try reading IIS site name from DJANGO_IIS_SITE_NAME environment variable.