Table of Content
Flask Basics
- Installation on Windows
- Two Ways of Running Flask Applications
- Installing and Running Hello World
- Introduction to Routes
- Route Methods
- Route Variables
- Requesting Query String
- Requesting Form Data
- Requesting JSON Data
- Incoming Request Method
- Redirects and url_for
- Configuration
- Sessions
- Debug Mode
Templates
- Introduction to Templates
- Template Variables
- Conditionals
- Loops
- Static Files
- Inheritance
- Include
Database
- Creating the Database
- Connect to the Database
- Queries
- Inserting Data
- View All Results
Food Tracker Application
- Demo
- Initial HTML Files
- Adding Templates
- Creating the Database
- Adding Database Helpers
- Working with the Food Form
- Inserting Food Data into the Database
- Displaying All Foods in the Database
- Inserting the Date
- Querying All Dates
- Day Screen
- Adding Food to the Database
- Getting a List of Foods for the Day
- Getting Food Totals for the Day
- Links
- Calculating Totals Per Day
- Adding Links
- Refactoring
- Setting Up Deployment Server on Amazon Lightsail
- Deploying to Amazon Lightsail Server
- Errata
Question and Answer Application
- Demo
- Overview of Templates
- Install and Templates
- Database Helpers
- Creating the Database
- Registering a User
- Logging In
- Sessions
- Common User Functions
- Updating Links
- Creating Test Users
- User Setup Page
- Creating a Question
- Listing Questions
- Answering Question
- Home Route Questions
- Question Page
- Preventing Duplicate Users
- Protecting Routes
- Protecting Routes by Role
- Login Failure Messages
- Formatting Queries
- Added Link Macro
- Base Template
- Deploying to Heroku
- Converting to Postgres
- Static Secret Key on Heroku
Member API
- Demo
- Setting Up the Application and Test with Postman
- Adding Database Helpers
- Creating the Database
- Creating a New Member
- Returning a Member after Creation
- Getting All Members
- Getting One Member
- Editing a Member
- Deleting a Member
- Authentication
- Authentication Decorator
- Deploying to Python Anywhere
Flask-SQLAlchemy
- Setting Up a Database and Determining the URI
- Installing Flask-SQLAlchemy
- Connecting to the Database
- Creating a Table
- Inserting Data
- Updating Data
- Deleting Data
- Introduction to Queries
- Generative Queries
- Not Equals and Like
- In and Not In
- Null and Not Null
- And
- Or
- Order By
- Limit
- Offset
- Count
- Inequality
- One-to-Many Relationship
- One-to-Many Queries
- Many-to-Many Relationships
- Many-to-Many Queries
Flask-WTF
- Installing and Setting Up Flask-WTF
- Creating a Form
- Submitting the Form
- Validators
- More Fields
- Adding an Extra Validator
- Changing Labels and Defaults
- Prepopulating Data
- Populating Obj
- More on CSRF
- Jinja Macro
- Form Inheritance
- Field Enclosures
- Field List
- Deleting Field
- Dynamic Forms
- Note on JavaScript AJAX
- Recaptcha Field
- Inline Validators
- Information on Other Fields and Validators
- Date Fields
- Flask-WTF Example
- Flask-WTF with Flask-Bootstrap
Flask-Bootstrap
- Installing and Setting Up Flask-Bootstrap
- Blank HTML
- Available Blocks
Flask-Mail
- Configuring Flask-Mail
- Setting Up Server and Sending an Email
- Notes on Debug
- Email Body
- Adding More Recipients
- Adding Sender Name
- Bulk Messages
- Attachments
- Other Message Parameters
- Setting Up Gmail
Flask-Migrates
- Installing Flask-Migrates and Setting Up an Environment Variable
- Creating Database, Adding SQLAlchemy, and Migrating
- Creating Table Upgrade in SQLite
- Upgrading with SQLite
- SQLite Downgrades
- Upgrading and Downgrading
- MySQL Upgrade and Downgrade
- Manually Editing Migration
- Dropping Columns in SQLite
Flask-Uploads
- Installing and Configuring Flask-Uploads
- Uploading a Form
- Uploading the Image
- Allow and Deny
- Default Dest
- Combining Extensions
Flask-Login
- Installing and Initializing Flask-Login
- Adding User Model
- User Loader
- Login User
- Current User
- Log Out a User
- Creating a Login Form
- Redirecting to the Login Route
- Login Message
- Redirecting Messages
- Remember Me
- Fresh Login
- Alternative Tokens
- Auto Expire
- Using MongoDB
Flask-Admin
- Installing and Setting Up Flask-Admin
- Adding User View
- Viewing Table with Multiple Columns
- Tables with Relationships
- Removing a Column from the View
- Displaying Primary Key Column
- Enabling/Disabling, Creating, Editing, and Deleting
- Exporting Table Data
- Creating a Modal
- Other Attributes
- Using on_model_change to Automatically Hash a Password
- File Admin
- Modifying the Home Template
- Modifying Other Views
- Creating a New View
- URL For
- Inline Models
- Authentication for Views
- Adding Flask-Login
Flask-User
- Installing and Configuring Flask-User
- Creating a Database
- Flask-User Sign In and Register Screens
- Creating a Protected Page
- What Flask-User Does to the Database Record?
- Enabling Emails
- Modifying Templates
- Modifying Email Templates
- Changing the After-Register Endpoint
- Current User Information
Flask-Babel
- Installing Flask-Babel
- Locale
- Dates and Datetime
- Marking Words for Translation
- Translations
- Poedit
Flask-Restless
- Installing Flask-Restless
- Setting Up Models
- Creating a Database
- Integrating Flask-Restless
- GET Requests
- GET Specific Items
- POST Requests
- DELETE Requests
- PUT Requests
- Limit
- Offset
- Order By
- Searching Queries
- In and Not In Operators
- Is Null and Is Not Null Operators
- Like Operator
- Or Queries
- Any Operator
- Has Operator
- Deleting with Queries
- Patching with the Queries Bug
- Pagination
Flask-SocketIO
- Installing and Setting Up Flask-SocketIO
- Setting Up JavaScript Client
- Sending Messages from Client to Server
- Sending Messages from Server to Client
- Emitting Custom Events
- Sending and Receiving JSON
- Multiple Clients
- Broadcasting Messages
- Server Initiated Events
- Namespaces
- Session IDs
- Sending Private Message
- Joining a Room
- Leaving a Room
- Closing a Room
- Connecting and Disconnecting
Flask-Security
- Installing and Setting Up Flask-Security
- Creating a Database
- Viewing Login and Register Routes
- Additional Routes
- Login Required and Current User
- Roles
- Enabling Mail
- Custom Emails
- Custom Views
- Extending the Forms
- HTTP Basic Authentication
Engage! A Twitter Clone
- Overview of Templates
- Creating Routes with Templates
- Converting Static Resources
- Preparing Flask-Migrate and Flask-SQLAlchemy
- Creating an SQLite Database
- Adding User Model and Creating a Table
- Creating the Register Form
- Converting the Register Form to WTForm
- Testing the Register Form
- Adding Error Messages to the Register Form
- Handling the Profile Image Upload
- Saving the Registration Data to the Database
- Creating the Login Form
- Creating the Login Route
- Finishing the Login Form
- Displaying the Profile Information
- Creating Tweet Model and Migrating
- Creating a Tweet Form
- Updating the Timeline to Be Dynamic
- Adding Time Since the Creation of a Tweet
- First Refactor
- Timeline Image and Total Tweets
- General Timeline Page
- Making a Profile General
- Follower Model
- Adding a Follow Route
- Updating the Follower Count and List of Followers
- Creating a Follow Link
- Testing the Follow Link
- Updating the Timeline Page
- Adding Links to User Profiles
- Who to Watch Section?
- Adding User Timeline Links
- Refactoring HTML
- Refactoring Navigation
- Making Navigation Links Dependent on Login Status
- Updating the Timeline Follower Count and Changing the Homepage
- Refactoring Views
- Refactor Register Template
- Conclusion
Store Application
- Initial Files
- Adding the Product Table
- Creating the Add Product Form
- Adding Products to the Database
- Admin Dashboard Product List
- Showing the Dollar Amount and Product Counts
- Adding Products to the Homepage
- The Product Page
- Adding Products to the Cart
- The Cart Session
- Displaying Items in the Cart
- Removing Items from Cart
- Creating the Order Tables
- Creating the Checkout Form – Part 1
- Checkout Form - Part 2
- Checkout Form - Part 3
- Randomizing the Reference
- Checkout Screen Cart Details
- Managing Pending Orders
- Calculating the Order Total
- Order Screen
- Updating the Stock Totals
Forum Application
- Overview of the Forum Application
- Setting Up the Flask-Security Models
- Setting Up the Register Page
- Setting Up a User
- Login Screen
- Thread Model
- Saving the Thread Form to the Database
- Displaying Threads from the Database
- Updating the Thread Model to Include the Date
- Thread Page
- Creating the Reply Model
- Handling Replies
- Adding the Last Post's Date
- The Profile Page
- Adding Links and Wrap Up
Weather Application
- Introduction
- Setting Up the Application
- Retrieve API Data
- Creating a Database
- Adding Cities to the Database
- Show Saved City Data
- Allow User Save Cities
- Install Python-Dotenv
- Preventing Duplicate Cities
- Preventing Invalid Cities
- Message Flashing
- Deleting Cities
Apply for Certification
https://www.vskills.in/certification/flask-framework-certification-course