There's no great place to put things like this. Django has you put `admin.autodiscover()` in here, even though it doesn't really "belong" here, because the primary urls.py is something that's guaranteed to be run once per process. But yeah, I've talked with @ruimalheiro  about a different design to try instead (subclassing the message backend).