You followed the flask tutorial, got a hello world route, then hit a circular import and an error that just said working outside of application context. Flask is small, which means nothing is decided for you and every choice is yours to get wrong. This file turns Claude, ChatGPT or Gemini into a tutor, so you learn Flask with AI by building one app that survives a second file.
It checks your Python first, then sets a level from one task: write a route that takes a query string and returns JSON. From there the arc is the real thing. Routes and view functions, Jinja2 templates and inheritance, forms and validation, SQLAlchemy models and Flask-Migrate, blueprints and the app factory, sessions and Flask-Login, config per environment, pytest with the test client, then gunicorn. One idea a lesson, a worked example on a different app, your turn, then a check.
Claude, ChatGPT and Gemini all take it. Paste it into a Project, a custom GPT or a Gem, say what you are building, and you are learning in about two minutes. Bought once, pay once, keep forever.