ennio/django-hosts — Issue #3: Subdomains matching
Author: Lispython
Created: 2011-12-24 12:40:23+00:00
State: open

Hi.

I have some troubles with matching domains with levels more then 2.

Examples:
http://bb.aa.tt.localhost.ru:8087/
or
domain without subdomains:

http://localhost.ru:8087/

Maybe split host by \. and apply host.compiled_regex.match to bb.aa.tt ?