# jazzband/django-hosts

Dynamic and static host resolving for Django. Maps hostnames to URLconfs.

Repository: https://github.com/jazzband/django-hosts
Canonical: https://ross.abutalabs.com/products/django-hosts
Homepage: http://django-hosts.rtfd.org
Language: Python
License: NOASSERTION
License Family: other
Last push: 2026-08-24T17:41:05+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 5452, "days_push": 9, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1060, forks 107 (observed 2026-08-28T04:03:25.648100+00:00)

## What it is
A Django app that routes requests for specific hostnames (like api.example.com) to different URLconfs via configurable host patterns. It supports both dynamic and static host resolution through middleware and regular-expression-based host matching.

## Use cases
- serve api.example.com and beta.example.com from one Django project
- route subdomains to different URLconfs in Django
- map hostnames to Django apps
- multi-tenant Django setup with subdomains
- reverse host names in Django templates
- serve different content per subdomain

## When to choose
- you need subdomain-based routing within a single Django project
- you want to keep separate URL schemes per hostname without running multiple servers
- you need host-aware URL reversing in templates

## When to avoid
- you only need a single domain with path-based routing
- you use a framework other than Django
- your routing is handled at the load balancer or web server level

## Facets
- artifact type: library
- maturity: stable
- function: routing, middleware, web-framework
- domain: web-development, backend, apis
- platform: python
- tags: django, subdomains, host-routing, urlconf, jazzband, web-server

## Member repositories
- jazzband/django-hosts (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:25.648100+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:56:57.073592+00:00, confidence not recorded.
  - readme: https://github.com/jazzband/django-hosts (fetched 2026-08-28T04:03:25.648100+00:00, sha 271f3431f95f)
  - registry_pypi: https://pypi.org/pypi/django-hosts/json (fetched 2026-08-29T12:59:33.696510+00:00, sha 22e5414e6949)
- Data as of 2026-08-30T08:39:29.467469+00:00.
