make:model Videos#
This page collects the model-first workflow videos, from basic model creation through RESTful resource generation and the flat-vs-nested structure choice.
If you like starting from the data shape first, this page keeps that whole track together and remembers which videos you have already finished.
flask make:model#
Intro To Flask Make Model Unwatched
When a model-first workflow is the clearest starting point and how make:model can grow outward into the rest of the application structure.
If the embed does not load, watch on YouTube: Intro To Flask Make Model.
The Basics of make:model#
Make a basic model Unwatched
How to generate a model first when the data structure is the clearest starting point for the feature you are building.
If the embed does not load, watch on YouTube: Make a basic model.
What the model includes Unwatched
What Flask-Commands puts into the generated model file so you know which parts are ready immediately and which parts you still need to shape yourself.
If the embed does not load, watch on YouTube: What the model includes.
Edit the model and migrate the database Unwatched
The next practical step after generation so your model changes become real database structure instead of just code on disk.
If the embed does not load, watch on YouTube: Edit the model and migrate the database.
Create, Update, and Delete a Recipe Unwatched
How to use the generated model methods in a Flask shell to create, update, and delete recipe records after the database schema is ready.
If the embed does not load, watch on YouTube: Create, Update, and Delete a Recipe.
RESTful Resource with make:model#
Build a resource with make:model --crud Unwatched
How a model-first command can expand outward into a fuller resource by generating the controller, routes, and templates around the data structure.
If the embed does not load, watch on YouTube: Build a resource with make:model --crud.
Flat vs Nested with make:model#
Choose Flat or Nested with ``--crud`` Unwatched
How make:model --crud handles a multi-word model name when it could represent either one flat resource or a nested model chain.
If the embed does not load, watch on YouTube: Choose Flat or Nested with ``--crud``.
Skipping the Prompt with ``--flat`` or ``--nest`` Unwatched
How to bypass the interactive structure prompt when you already know whether the generated resource should be flat or nested.
If the embed does not load, watch on YouTube: Skipping the Prompt with ``--flat`` or ``--nest``.
Choosing Flat for One Multi-Word Model Unwatched
How --flat keeps a model name like ShoppingList together and generates the matching controller, routes, templates, and URL shape.
If the embed does not load, watch on YouTube: Choosing Flat for One Multi-Word Model.
Choosing Nest for a Parent-Child Resource Unwatched
How --nest turns a name like RecipeIngredient into a child resource under Recipe, including the nested controller, route package, and URL shape.
If the embed does not load, watch on YouTube: Choosing Nest for a Parent-Child Resource.
Use ``make:controller`` for Namespacing Unwatched
Why namespaces are controller and route organization rather than model structure, and why make:controller is the clearer tool for that job.
If the embed does not load, watch on YouTube: Use ``make:controller`` for Namespacing.
Build Nested Resources One Level at a Time (make:model) Unwatched
How to grow nested model-first resources from the top down so each registered parent is available before adding the next child.
If the embed does not load, watch on YouTube: Build Nested Resources One Level at a Time (make:model).
Finishing Out Cooker Unwatched
Watch a longer walkthrough of finishing the Cooker application after Flask-Commands has quickly put the wiring in place.
If the embed does not load, watch on YouTube: Finishing Out Cooker.