Re: Usage of DjangoRuntimeWarning

2016-04-26 Thread Tim Graham
I think warnings.filterwarnings(RuntimeWarning, module="django..") might allow filtering without a subclass? According to the ticket, Carl offered the version of the patch with DjangoRuntimeWarning "following design discussion with Russell K-M, Malcolm T, Jannis L, and Jeremy Dunck." (in case a

Usage of DjangoRuntimeWarning

2016-04-15 Thread charettes
During a review session I noticed the existence of `DjangoRuntimeWarning`[1] which was introduced in order to be subclassed to warn about about cache keys that are not compatible with Memcache[2]. As our test suite demonstrate subclassing `RuntimeWarning` can be quite useful when you want to con