def check_domain(domain):
 return ((domain not in DEFAULT_DOMAINS) and (not domain.startswith(u'http:')) and (not domain.startswith(u'https:')) and (not domain.endswith(u'/')))

def check_domain ( domain ) : return ( ( domain not in DEFAULT_DOMAINS ) and ( not domain . startswith ( u'http:' ) ) and ( not domain . startswith ( u'https:' ) ) and ( not domain . endswith ( u'/' ) ) )
checks whether site domain is correctly set .