# django/django SLOC report

> As of 2026-10-07 (commit 7f48e266a831), django/django contains 558,860 total lines: 405,195 code, 45,691 comments, 107,974 blank, across 3,624 files in 17 languages (top: PO File 59.5%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

django/django has 405,195 source lines of code out of 558,860 total lines across 3,624 files, counted from the main ref at commit 7f48e266a831 by the OctoCounts tokei engine on 2026-10-07. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving django/django to commit 7f48e266a831, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

This is a large codebase by counted code lines. Code represents 72.5% of all lines, comments represent 8.2%, and the repository averages 112 code lines per file. PO File accounts for 59.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| PO File | 1,226 | 360,574 | 240,919 | 33,611 | 86,044 |
| Python | 909 | 161,055 | 129,617 | 11,118 | 20,320 |
| Modelica | 1,226 | 22,508 | 22,386 | 114 | 8 |
| JavaScript | 33 | 5,813 | 5,081 | 364 | 368 |
| CSS | 14 | 4,844 | 3,864 | 115 | 865 |
| HTML | 163 | 2,998 | 2,730 | 8 | 260 |
| SVG | 32 | 351 | 165 | 186 | 0 |
| INI | 1 | 124 | 104 | 8 | 12 |
| Shell | 2 | 130 | 83 | 18 | 29 |
| JSON | 2 | 71 | 71 | 0 | 0 |
| TOML | 1 | 69 | 61 | 0 | 8 |
| ReStructuredText | 2 | 86 | 58 | 0 | 28 |

Top language (PO File 59.5%). Generated at 2026-10-07T20:24:17.745776646+00:00. Canonical report: https://octocounts.com/github/django/django

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/django/django/commit/7f48e266a83110d62ffb4663d72c9e347db75a9b?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does django/django have?

django/django has 558,860 total lines, including 405,195 code lines, 45,691 comment lines, and 107,974 blank lines.

### How was the django/django line count measured?

OctoCounts resolved the public GitHub repository to commit 7f48e266a831, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for django/django?

This OctoCounts report was generated from main at commit 7f48e266a831 on 2026-10-07T20:24:17.745776646+00:00.

## Similar repository reports

- [KDE/dolphin](https://octocounts.com/github/KDE/dolphin) — PO File, 395,973 code lines
- [frePPLe/frepple](https://octocounts.com/github/frePPLe/frepple) — PO File, 428,726 code lines
- [wagtail/wagtail](https://octocounts.com/github/wagtail/wagtail) — PO File, 368,374 code lines
- [forkmirror/bash](https://octocounts.com/github/forkmirror/bash) — PO File, 317,995 code lines
- [guillemj/dpkg](https://octocounts.com/github/guillemj/dpkg) — PO File, 546,340 code lines
- [gitGNU/gnu_bash](https://octocounts.com/github/gitGNU/gnu_bash) — PO File, 296,705 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
