pallets/flask

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'.

reyesvicente opened this issue · 2 comments

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

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.

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