Python 7,030 FILES 9 FINDINGS

HOW DJANGO
ACTUALLY WORKS

The web framework for perfectionists with deadlines. Conventions, patterns, and architecture extracted from the django/django repository by sourcebook.

QUICK_REF:
Testing: pytest. Test utilities in: tests/test_utils/fixtures/person.json.

WHAT_MATTERS

  • tests/staticfiles_tests/project/documents/cached/module_test.js is a hub file (imported by 8 files) — changes here ripple everywhere

  • Circular import chains detected — avoid adding to these cycles

KEY_FINDINGS

Django project (settings: tests/staticfiles_tests/settings.py). Use `python manage.py` for management commands.

HIGH

After modifying models, run `python manage.py makemigrations && python manage.py migrate`.

HIGH

Tests use pytest. Test utilities in: tests/test_utils/fixtures/person.json.

HIGH
20 test files

Database access uses Django ORM. Schema/models defined in tests/xor_lookups/models.py.

HIGH
37 files

Hub files (most depended on): tests/staticfiles_tests/project/documents/cached/module_test.js (imported by 8 files). Changes here have the widest blast radius.

HIGH

Circular import chains detected: xregexp.js. Avoid adding to these cycles.

HIGH
GENERATED IN ~3 SECONDS WITH

npx sourcebook init

VIEW ON GITHUB star

RELATED_REPOS