Django ist keine Magie sondern ein "normales" Python Modul. Da kannst du drin stöbern und überall hinein schauen.
Hier ist zum Beispiel dasentsprechende Repository bei github.
Oder du schaust bei dir auf dem lokalen rechner. Du solltest aber tunlichst nichts daran ändern.
Wo es liegt? Finde es heraus:
Code: Alles auswählen
> python manage.py shell
Python 3.10.5 (tags/v3.10.5:f377153, Jun 6 2022, 16:14:13) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import django
>>> django.__file__
'C:\\Users\\sparr\\temp\\20230210\\env\\lib\\site-packages\\django\\__init__.py'