New in DJP 0.2: @carlton suggested it would be useful if plugins could say “this middleware needs to be inserted directly before/after this other middleware” - that’s now supported:
djp.Position("my_plugin.middleware.MyPluginMiddleware", before="django.middleware.common.CommonMiddleware")
@simon the diagnosis of the bug from the LLM there is pretty high quality.
Linked on the issue :
https://github.com/simonw/djp/issues/10