To understand the request-response cycle, we will implement a static page.
- [Instructor] Welcome back.…In the last video we talked about…the Request Response Cycle.…In this video, we'll start by making a homepage…for the Flask app.…The homepage will have an image of the app,…a few lines about what the app does,…and buttons to sign up or log in.…So inside the templates folder,…create a new file named index.html.…So cd templates, touch index.html.…Here's what index.html looks like.…
I added some starter code here.…It starts off with a DOCTYPE,…a head, which includes two CSS files,…and a body, which has a header,…and some content describing the app.…Let's think a few steps ahead for a second.…Suppose I now want to make another page, say an about page.…My website should have a similar style and layout…across all of its pages,…so that means I will need to copy all of this HTML…from this index.html file…for this new file that I want to create.…It seems pretty wasteful to write all of this HTML again…when the only part I'd be changing is this small bit…of content in the body after the header.…
The need for talented developers is greater than ever before. A basic grounding in a framework as simple, powerful, and easy-to-learn as Flask—a Python micro framework—can help launch your programming career. Get a basic grounding in the fundamental concepts of web development, as well as the hands-on experience required to successfully build web apps with Flask, in this course with Packt trainer Lalith Polepeddi.
It starts with turning your computer into a modern development machine. Then learn everything you need to know about Flask: models, views, controllers, web templates, forms, validation, and API interactions. Lalith shows how to apply these concepts and develop a powerful database-backed Flask app, including a full authentication system. Finally, Lalith shows how to extend the app's functionality by integrating it with third-party APIs. When you finish this course, you will be fully equipped to build your very own custom web apps with Flash.
- Setting up your development environment
- Creating a homepage
- Building templates
- Routing with Flask
- Deploying to Heroku
- Storing data
- Creating and rendering forms
- Validating form data
- Creating a user authentication system for login and logout
- Implementing location-based app features
Skill Level Beginner
1. Setting Up the Environment
2. Getting Started
3. Storing Data
4. Signing Up
5. Logging In and Logging Out
6. Authorization and User Roles
7. Bookmarking Places
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.