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 Setup Tutorial doesn't work #5368

Closed
ntelo007 opened this issue Dec 23, 2023 · 1 comment
Closed

Application Setup Tutorial doesn't work #5368

ntelo007 opened this issue Dec 23, 2023 · 1 comment

Comments

@ntelo007
Copy link

Description

If you try to run the Flask application by following this tutorial it doesn't work: https://flask.palletsprojects.com/en/3.0.x/tutorial/factory/

Suggested solution

In my personal project, I created an app.py file and in there I pasted the following code:

from flaskr import create_app

app = create_app()

if __name__ == '__main__':
    app.run()

I run this file and the Flask app can initialize.

@davidism
Copy link
Member

I can't reproduce this issue with the information provided. The tutorial code is included in the repo if you want to compare if you missed or typoed something. It runs fine for me. There's no need to create the script you've shown, the flask command shown in the tutorial already does that for you.

@davidism davidism closed this as not planned Won't fix, can't repro, duplicate, stale Dec 23, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants