You can get the subdomain with request.env.http_host.split('.')[0]
If you always wanted it available, in a model:
subdomain = request.env.http_host.split('.')[0]
You can get the subdomain with request.env.http_host.split('.')[0]
If you always wanted it available, in a model:
subdomain = request.env.http_host.split('.')[0]