Django sites: domain and name for each website
Answer: The sites framework is mainly based on the Site model. Site stores the domain and name attributes of a website. domain is the fully qualified domain name, and name is a human-readable verbose name.
Notes
The docs use a two-site example: one site focused on news, and another on local entertainment.
Reference list
Sitestores the domain and name of a website.domainis the fully qualified domain name.nameis a human-readable verbose name.
See also
Claims
- id: C1 claim: The sites framework is mainly based on the Site model. source: S1 evidence: "The sites framework is mainly based on this model"
- id: C2 claim: Site stores the domain and name attributes of a website. source: S2 evidence: "A model for storing the `
domainandname` attributes of a website."
- id: C3 claim: domain is the fully qualified domain name associated with the website. source: S2 evidence: "The fully qualified domain name associated with the website."
Sources
- [S1] The sites framework. Django docs. https://docs.djangoproject.com/en/5.2/ref/contrib/sites/ . License: BSD-3-Clause. Accessed 2026-11-18.
- [S2] sites.txt. Django. https://raw.githubusercontent.com/django/django/stable/5.2.x/docs/ref/contrib/sites.txt . License: BSD-3-Clause. Accessed 2026-11-18.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Django docs, The sites framework; Django, sites.txt. BSD-3-Clause (https://raw.githubusercontent.com/django/django/main/LICENSE). Copyright Django Software Foundation and individual contributors. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Django docs, The sites framework; Django, sites.txt. BSD-3-Clause (https://raw.githubusercontent.com/django/django/main/LICENSE). Copyright Django Software Foundation and individual contributors.
Cite this
iinventedlight. 2026. "Django sites: domain and name for each website." iinventedlight Library, iil:note:30aq3c3w, version of 2026-11-18. https://iinventedlight.com/library/notes/django-sites/. License: CC-BY-4.0.
@misc{iil_note_30aq3c3w,
author = {{iinventedlight}},
title = {{Django sites: domain and name for each website}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-18},
url = {https://iinventedlight.com/library/notes/django-sites/},
note = {Permanent ID iil:note:30aq3c3w. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- django-sites.table.json (table; CC-BY-4.0)
- django-sites.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/django-sites.md.