Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Flask with SQLAlchemy Basics!
You have completed Flask with SQLAlchemy Basics!
Preview
Create a layout.html file to help DRY up your HTML code.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
I'm going to use the name of the file
as the route and functions name.
0:00
If you gonna challenge yourself by
creating the route on your own,
0:03
then go ahead and
pause me and give it a go.
0:08
Otherwise, let's work
through this together.
0:12
Let's start with add pet.
0:16
We'll need a route Slash add-pet.
0:20
Our function will be called add_pet.
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up