I have an example of having a frontend Flash app before continuing with its main application.
I implemented it using the middleware pattern:
class MyMiddleware(object): def __init__(self, main_app, pre_app): self.main_app = main_app self.pre_app = pre_app def __call__(self, environ, start_response):
Is there a more idiomatic way to do this without creating a context to check if the application is being processed by the application? I want to maintain the flexibility of storing two applications.
python flask werkzeug
Ilya
source share