Closed acdha closed 14 years ago
Ack, bitten by the github pull interface not updating to the commit range chosen. Will close.
Here's the single request to cherry pick - it doesn't look like there's any way to send a request which doesn't pull in everything else:
http://github.com/acdha/django-test-utils/commit/2b7e64535314f3e4743f28ab232a96139dd9e137
Hi all.
I wrote another hacky piece of code for this problem: http://gist.github.com/573536
Pros: can be used outside crawler as decorator or 'with' context manager. No TestCase subclass is needed. Cons: settings.DEBUG patching
Maybe it can be combined with acdha's code? What do you think?
There was a little bit of a discussion in IRC yesterday. My proposal:
These sound like good ideas. Let's get together with Rob at the sprints today and talk about this :) (Sprints FTW)
This is a simple plugin which logs the number of database queries executed for a view. It's currently Django-1.2 only.