Is it possible to use regular Django models from within Middleware?
I have been looking for simple examples but couldn’t find anything about the availability of such parts of the Django framework to middleware. I believe from my limited understanding that they should be.
The model system is available from everywhere in your django application, as long as you import the relevant models. It is not tied to the HTTP lifecycle.