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.
This video slot is planned for the series. Once a YouTube video is linked, it will expand and play directly on this page.
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.
This video slot is planned for the series. Once a YouTube video is linked, it will expand and play directly on this page.
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.
This video slot is planned for the series. Once a YouTube video is linked, it will expand and play directly on this page.
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.
This video slot is planned for the series. Once a YouTube video is linked, it will expand and play directly on this page.
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.
This video slot is planned for the series. Once a YouTube video is linked, it will expand and play directly on this page.
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.
This video slot is planned for the series. Once a YouTube video is linked, it will expand and play directly on this page.
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.
This video slot is planned for the series. Once a YouTube video is linked, it will expand and play directly on this page.
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.
This video slot is planned for the series. Once a YouTube video is linked, it will expand and play directly on this page.
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.
This video slot is planned for the series. Once a YouTube video is linked, it will expand and play directly on this page.
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.
This video slot is planned for the series. Once a YouTube video is linked, it will expand and play directly on this page.
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.
This video slot is planned for the series. Once a YouTube video is linked, it will expand and play directly on this page.
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.
This video slot is planned for the series. Once a YouTube video is linked, it will expand and play directly on this page.