Matthias Kestenholz
Matthias Kestenholz
Here's the way I do it these days. I have a DEBUG *and* a TESTING setting: https://github.com/matthiask/workbench/blob/5e3663cb7c28cec707cfe746e9072e4fa6778f30/workbench/settings.py#L16-L17 Then, I initialize `DEBUG_TOOLBAR = DEBUG and not TESTING` Now Django (and other...
@tim-schilling I doubt there is an easy way to achieve this. We'd have to find solutions for pytest, unittest etc. The `sys.argv` hack definitely would not work for all cases.
Definitely makes sense.
The templates panel already does a similar thing, without a form though but with django.core.signing: https://github.com/jazzband/django-debug-toolbar/blob/master/debug_toolbar/panels/templates/views.py#L14 It would be great to reuse the implementation we already have if possible.
I'm closing this pull request because of inactivity, not rejecting the feature. Please resubmit if you still want to work on this, after resolving conflicts and adapting the code for...
Thank you! 💜 Here's a pull request changing the cache panel and an excerpt from the discussion: https://github.com/jazzband/django-debug-toolbar/pull/1427 > [...] I don't think it's possible to avoid that and still...
We have some problems with the template panel especially since Django changed to render form widgets using templates. We try caching (memoizing) the result of `pprint` resp. `pformat` calls now...
This might work, but looks really really evil :-/
The relevant code has changed a lot in this area. Please resubmit if you still want to work on this. Thanks in advance!
This misbehavior (which is inherited from Django's ImageField) was the reason for me to finally bite the bullet and write my own imagefield. [The code to check images on upload](https://github.com/matthiask/django-imagefield/blob/b3a847749278ceee5afc44d5ab87a9b082c014a4/imagefield/fields.py#L264-L301)...