Create a URL Shortener In Flask! | Flask Tutorial

Опубликовано: 29 Сентябрь 2024
на канале: TurbineThree
667
13

Start & End Code: https://github.com/RoyChng/URL-Shortener
*Make sure to place index.html inside a folder called "templates"

In this video, we go over how to create a simple URL shortener using flask in python.

We use flask features such as variable routing and WTForms for the input elements (for validation purposes).

In the end, we will have an application you can deploy to let users shorten URLs quickly and easily, and you will have a much better understanding of how to use a flask in python!

Read about what is cross-site-request-forgery: https://en.wikipedia.org/wiki/Cross-s...

Timestamps:
00:00 | Intro
00:23 | Installing flask & WTForms
00:50 | Rendering the template
03:00 | Creating input fields using WTForms
09:10 | Receiving and validating input
11:50 | Shortening URLs
15:10 | Displaying user feedback
21:17 | Redirecting the user