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

flask -A flaskr init-db Error: Could not import 'flaskr.flaskr'. Usage: flask [OPTIONS] COMMAND [ARGS]... Try 'flask --help' for help. Error: No such command 'init-db'. #5348

Closed
reyesvicente opened this issue Nov 27, 2023 · 2 comments

Comments

@reyesvicente
Copy link

reyesvicente commented Nov 27, 2023

Following the tutorial in the website. When I ran flask --app flaskr init-db, it returned the error

Environment:

  • Python version: 3.12.0
  • Flask version: Flask==3.0.0
@davidism
Copy link
Member

I can't reproduce this issue with the information provided. When reporting an issue, be sure to included a minimal reproducible example.

In this case, be sure you've followed the tutorial exactly. It does work as written.

@davidism davidism closed this as not planned Won't fix, can't repro, duplicate, stale Nov 27, 2023
@reyesvicente
Copy link
Author

I can't reproduce this issue with the information provided. When reporting an issue, be sure to included a minimal reproducible example.

In this case, be sure you've followed the tutorial exactly. It does work as written.

My bad. The steps to reproduce was in the comment lol updated it

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 13, 2023
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