Agreed - which is why I don't put my business logic in the webapp, or use models coupled to the web framework.
The web framework is a way to handle http, rest, or graphql - deserializing and serializing those protocols, not a way to handle my business logic.
Decoupling these things lets you write one-off scripts or have task queues that don't need to load the context of a large web framework - they can just be simple python.
The web framework is a way to handle http, rest, or graphql - deserializing and serializing those protocols, not a way to handle my business logic.
Decoupling these things lets you write one-off scripts or have task queues that don't need to load the context of a large web framework - they can just be simple python.