Intro to Flask-Babel: Translations (Part 2 of 2)

Translations is the other thing Flask-Babel can do, so in this video, I'll show you how to detect locales and create translations for different languages using Flask-Babel. Download the code here: https://s3.us-east-2.amazonaws.com/prettyprinted/b...

READ MORE

Intro to Flask-Babel: Numbers and Dates (Part 1 of 2)

Flask-Babel is a great extension for localizing (l18n) your app. In this video, I show you how to use Flask-Babel to format numbers and dates depending on a specified locale. Download the code here: https://s3.us-east-2.amazonaws.com/prettyprinted/b...

READ MORE

Running Scripts on Heroku

If you ever need to run a script on Heroku, check out this video because I show you exactly how to do that using heroku run.

READ MORE

The Map, Filter, and Reduce Functions in Python

In this video, I introduce the map, filter, and reduce functions in Python.

READ MORE

Writing CSV Files in Python

To go along with my reading CSV files in Python, I've created this writing CSV files in Python.

READ MORE

Reading CSV Files in Python

Reading CSV files is a common task in Python. In this video, I show you how to do it.

READ MORE

Creating a Date Filter for Jinja Templates

In this video I demonstrate how to create a custom date format filter for Jinja templates. Get the code here: https://s3.us-east-2.amazonaws.com/prettyprinted/j...

READ MORE

Accepting Payments in Flask Using Stripe Checkout

Accepting payments in Flask is straightforward using Stripe Checkout. All you need to do is embed an HTML form to your template and add a little bit of backend code, and you'll be able to charge your customers with Stripe in your Flask app. In this video, I show you exactly how you can get...

READ MORE

Pagination in Flask-SQLAlchemy

Using pagination in Flask-SQLAlchemy is important because often times you'll have large datasets in your database that you don't want to appear in your template all at once. By calling the paginate method on your SQLAlchemy model query, you'll be able to return only the results you want while...

READ MORE

Understanding Cross-site Request Forgery (CSRF) Attacks

In this video, I explain and demonstrate cross-site request forgery (CSRF) attacks. By the end, you should have a better understanding of what CSRF attacks are and how to prevent them. Download the code here: https://s3.us-east-2.amazonaws.com/prettyprinted/c...

READ MORE