Application Factory guidance #372
-
I have created an app very similar to this tutorial which uses Application Factory: https://github.com/pallets/flask/tree/2.0.2/examples/tutorial . Which is taken from Flask website itself: https://flask.palletsprojects.com/en/2.0.x/tutorial/ . My app doesn't necessarily use nested I've had a good web search on how to apply your container using Application Factory, but I can't seem to find anything that relates to using it with the Using the tutorial example from the first tutorial link above, can you please explain how to use this container along with Application Factory? FYI, I too get the following error |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's a bit difficult without looking at your code, but you could create a file with something like from .some_module import create_app
app = create_app() |
Beta Was this translation helpful? Give feedback.
It's a bit difficult without looking at your code, but you could create a file with something like
app/main.py
that does something like this: