Re: how to split in multiple file class models.py?

2022-03-20 Thread richard...@gmail.com
Sorry for reviving an old topic, but I have a models.py file that is >15,000 lines and would like to chop it up (PyCharm is groaning under the weight!). How would I handle the imports between the chopped-up files in a models module where the referenced foreign key model is in a different file?

Django debug toolbar database query stats, but when generating pdf files?

2021-03-13 Thread richard...@gmail.com
Hi, I find the identification of duplicate and similar database calls in the Django Debug Toolbar invaluable for optimizing database access. The information shows up in an overlay over html pages. Of course, the information cannot show up when I'm generating a pdf, though I can tell from the r