Print statements inside Django internals

Hi,

I want to explore a bit inside Django (DRF) internals, to learn in which order the internal methods are executed.

I tried with a simple ‘print’ statement and a simple logger, which also didn’t work.

Can someone clarify how to achieve this ? (if its possible)

I think that the best way to achieve this is by setting a debugger, then find which parts of the code are being executed. Then later you can look more in deep on it.
You can use the built-in vscode debugger for example…

1 Like

So, this one:

Ok, I’ll check it out. Thanks!.