jazzband/django-hosts
Dynamic and static host resolving for Django. Maps hostnames to URLconfs. observed · 2026-08-28
Health v2 · maintenance only
77/100
- Activity 99
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5452
- days_rel: n/a
- days_push: 9
- n_releases_24m: 0
Adoption not part of the score
1060 stars · 107 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
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
library · maturity stable
routing middleware web-framework web-development backend apis python django subdomains host-routing urlconf jazzband web-server
2 sources
- readme: https://github.com/jazzband/django-hosts · fetched 2026-08-28 · 271f3431f95f
- registry_pypi: https://pypi.org/pypi/django-hosts/json · fetched 2026-08-29 · 22e5414e6949
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| jazzband/django-hosts | main | 77 |
For agents
markdown · JSON · MCP: product_card(name="jazzband/django-hosts")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem