repowisedjango/django

Architecture of django/django

django/django is 3,010 source files holding 41,678 symbols across 6 modules, written mainly in Python, JavaScript, Shell. The largest module is tests, with 2,018 files, and 7 files are entry points into the dependency graph.

How django fits together

Requests enter through the handlers in django/core/handlers/wsgi.py and django/core/handlers/asgi.py, which connect the framework to WSGI and ASGI web servers. The django/core package provides these entry points along with core exception, signal, signing and caching utilities. Settings are handled by django/conf, which supplies default configuration from global_settings and defines URL patterns for internationalization and static files. The django/db package turns model and schema changes into database actions and wraps them in transaction handling. django/contrib/admin/options.py is one of the hotspot files in the admin package under django/contrib. The tests directory holds the test suite, which is run as described in the unit tests section of the contributing documentation.

Largest modules

  • tests: 2,018 files and 293,771 lines of code
  • django: 931 files and 135,146 lines of code
  • .github: 24 files and 1,297 lines of code
  • scripts: 13 files and 2,497 lines of code
  • js_tests: 11 files and 1,313 lines of code
  • root: 7 files and 203 lines of code
  • docs: 6 files and 859 lines of code

Languages

By file count: Python 2,924 files, JavaScript 45 files, Shell 2 files, Makefile 1 file.

Documentation

Repowise documents django in 4,390 pages generated from the source, 61 of them written explanations of the repository and its modules.

More on django: summary and FAQ, codebase overview, code health.