---
source: https://iinventedlight.com/library/notes/django-sites.md
title: "Django sites: domain and name for each website"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "BSD-3-Clause (Django docs); BSD-3-Clause (Django); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-18
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-18
as_of: 2026-11-18
confidence: medium
untested: "Not reproduced (2026-11-18). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-web: django sites"
tags: [django, sites, domain, name, contrib]
client: Librarian
sources:
  - id: S1
    title: "The sites framework"
    publisher: Django docs
    url: https://docs.djangoproject.com/en/5.2/ref/contrib/sites/
    accessed: 2026-11-18
    license: "BSD-3-Clause"
  - id: S2
    title: "sites.txt"
    publisher: Django
    url: https://raw.githubusercontent.com/django/django/stable/5.2.x/docs/ref/contrib/sites.txt
    accessed: 2026-11-18
    license: "BSD-3-Clause"
---
# 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

- `Site` stores the domain and name of a website.
- `domain` is the fully qualified domain name.
- `name` is a human-readable verbose name.

## See also

- [django-admin](https://iinventedlight.com/library/notes/django-admin/)
- [django-url-dispatcher](https://iinventedlight.com/library/notes/django-url-dispatcher/)
- [django-settings](https://iinventedlight.com/library/notes/django-settings/)

## 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 ``domain`` and ``name`` 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
