Lower level implementation of subdomain routing in django