Re: Improvements to the startproject template

2022-04-20 Thread John M
I do exactly this for every new Django project, so it's +1 from me as well. John On 20/04/2022 12:01, da...@springbourne-tech.com wrote: +1 for me - this would be really useful. On Monday, April 18, 2022 at 9:02:02 PM UTC+1 pyt...@ian.feete.org wrote: Hi Tim, This feels like a good i

Re: Debugging Django

2007-11-09 Thread John M. Anderson
> You cannot debug a single Django file in isolation. Instead, insert this > line: > >import pdb; pdb.set_trace() > > in sql.py, at the point you're interested in. Then run Django normally, > and > go to a db-based URL: you'll get a debugger prompt. > ok, thanks. I was just trying to debug wit

Debugging Django

2007-11-09 Thread John M. Anderson
I'm trying to debug sql.py the steps I've taken so far: python /usr/lib/python2.5/pdb.py manage.py sql polls (python manage.py polls works just fine) (Pdb) b django/core/management/sql.py:271 (Pdb) c Traceback (most recent call last): File "/usr/lib/python2.5/pdb.py", line 1213, in main p