Subdomains can be on subdomains.

This commit is contained in:
Samuel Clay 2023-02-04 13:18:36 -05:00
parent 51e8bc834f
commit 52bff3abe3

View file

@ -86,7 +86,7 @@ ALLOWED_SUBDOMAINS = [
def get_subdomain(request):
host = request.META.get('HTTP_HOST')
if host and host.count(".") == 2:
if host and host.count(".") >= 2:
return host.split(".")[0]
else:
return None