How to debug in Django, the good way? [closed]
There are a bunch of ways to do it, but the most straightforward is to simply use the Python debugger. Just add following line in to a Django view function: import pdb; pdb.set_trace() or breakpoint() #from Python3.7 If you try to load that page in your browser, the browser will hang and you get a … Read more