Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application Factory guidance #251

Open
fluffy-cakes opened this issue Oct 13, 2021 · 0 comments
Open

Application Factory guidance #251

fluffy-cakes opened this issue Oct 13, 2021 · 0 comments

Comments

@fluffy-cakes
Copy link

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 flaskr folder like in this example, but I guess it can be.

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 uwsgi.ini file. I have seen this closed task, but without his original code it's hard to understand how it was/should be laid out: #105

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 unable to load app 0 (mountpoint='') (callable not found or import error), and I also use create_app() function to nest the app itself: app = flask.Flask(__name__). Basically, almost identical to that original tutorial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant