host_patterns = patterns('',
host(r'', settings.ROOT_URLCONF, name='www'),
host(r'(www\.)*(?P<subdomain>[0-9a-z\-]+)', 'base.urls', callback='base.callbacks.host_subdomains', name='subdomain-area'),
)
def host_subdomains(request, *args, **kwargs):
# ищим адрес сабдомена kwargs