Welcome to another video! In this video, I’m going to show you how to create a website using python as fast as possible. We’ll be using the flask module which is a web framework for python. This will be a relativly simple and quick video so check the links below for more in depth videos.

💻 Thanks to Altium Designer for sponsoring this video. Checkout the best PCD design software on the market by signing up for a FREE trial here: https://www.altium.com/yt/techwithtim

📄 Resources 📄
Fix Pip (Windows): https://www.youtube.com/watch?v=AdUZArA-kZw&t=204s
Fix Pip (Mac): https://www.youtube.com/watch?v=E-WhAS6qzsU

Flask Tutorial Series: https://www.youtube.com/watch?v=mqhxxeeTbu0&t=46s
Flask Blog: https://www.youtube.com/watch?v=GQcM8wdduLI
Python Website Full Tutorial: https://www.youtube.com/watch?v=dam0GPOAvVI&t=1s
Flask REST API: https://www.youtube.com/watch?v=GMppyAPbLYk&t=769s

⭐️ Timestamps ⭐️
00:00 | Overview
01:53 | Environment Setup
02:39 | Flask Setup
04:28 | Creating Views/Routes
08:18 | Rendering HTML
09:45 | Template Variables
11:09 | URL Parameters
12:52 | Query Parameters
14:03 | Returning JSON
15:20 | Getting JSON Data
16:06 | Redirect
17:49 | Adding JavaScript
22:50 | Template Inheritance

◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
💰 Courses & Merch 💰
💻 The Fundamentals of Programming w/ Python: https://tech-with-tim.teachable.com/p/the-fundamentals-of-programming-with-python
👕 Merchandise: https://teespring.com/stores/tech-with-tim-merch-shop

🔗 Social Medias 🔗
📸 Instagram: https://www.instagram.com/tech_with_tim
📱 Twitter: https://twitter.com/TechWithTimm
⭐ Discord: https://discord.gg/twt
📝 LinkedIn: https://www.linkedin.com/in/tim-ruscica-82631b179/
🌎 Website: https://techwithtim.net
📂 GitHub: https://github.com/techwithtim
🔊 Podcast: https://anchor.fm/tech-with-tim

🎬 My YouTube Gear 🎬
🎥 Main Camera (EOS Canon 90D): https://amzn.to/3cY23y9
🎥 Secondary Camera (Panasonic Lumix G7): https://amzn.to/3fl2iEV
📹 Main Lens (EFS 24mm f/2.8): https://amzn.to/2Yuol5r
🕹 Tripod: https://amzn.to/3hpSprv
🎤 Main Microphone (Rode NT1): https://amzn.to/2HrZxXc
🎤 Secondary Microphone (Synco Wireless Lapel System): https://amzn.to/3e07Swl
🎤 Third Microphone (Rode NTG4+): https://amzn.to/3oi0v8Z
☀️ Lights: https://amzn.to/2ApeiXr
⌨ Keyboard (Daskeyboard 4Q): https://amzn.to/2YpN5vm
🖱 Mouse (Logitech MX Master): https://amzn.to/2HsmRDN
📸 Webcam (Logitech 1080p Pro): https://amzn.to/2B2IXcQ
📢 Speaker (Beats Pill): https://amzn.to/2XYc5ef
🎧 Headphones (Bose Quiet Comfort 35): https://amzn.to/2MWbl3e
🌞 Lamp (BenQ E-reading Lamp): https://amzn.to/3e0UCr8
🌞 Secondary Lamp (BenQ Screenbar Plus): https://amzn.to/30Dtafi
💻 Monitor (BenQ EX2780Q): https://amzn.to/2HsmUPZ
💻 Monitor (LG Ultrawide 34WN750): https://amzn.to/3dSD7tS
🎙 Mic Boom Arm (Rode PSA 1): https://amzn.to/30EZw9m
🎚 Audio Interface (Focusrite Scarlet 4i4): https://amzn.to/2TjXsih

💸 Donations 💸
💵 One-Time Donations: https://www.paypal.com/donate?hosted_button_id=CU9FV329ADNT8
💰 Patreon: https://www.patreon.com/techwithtim
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️

⭐️ Tags ⭐️
– Tech With Tim
– Python
– Website
– Flask
– JSON
– Altium

⭐️ Hashtags ⭐️
#TechWithTim #PythonWebsite

source

50 Comments

  1. You got me confused maybe I should start with some simpler programs . I know a guy at church that wants me to make him a website . I know there are many different ways to make a website using python . I am bad at different libraries . I barely know the entire standard library . I need help from somebody . My main goal with programming was to make video games . Along the way I picked up some other stuff and came to the conclusion that I could become a freelance programmer . I am disabled and do not have to work now but if I ever want a wife and kids I have to get a job and a good paying job . I do not think I am going to get rich programming but it is a start . Another thing that makes learning hard for me is not only my disability but the fact that I picked up Lua , Java Script and GD Script . GD Script and Java Script were recommended to me . I know the guy personally that said I should learn Java Script . A guy on QUORA said that I should learn GD Script to make games in Godot . I watched a youtube video that said lots of games have been written in Lua so I did the research and it said particular parts of games have been written in Lua . I am confused as hell right now so somebody please help

  2. Hey man, I have a quick question, when you put the "<h1>Home Page</h1>" in the <div> block of code, it shows " Home Page" (the text we wanted it to say) on the profile page. How could I make it appear on a different part of the web app (e.g, the home section)? Thanks for the fantastic tutorial, this one was the only one I could understand or get working! You've earned a new sub!
    Also, how could I use this to make a new section on the web app with something like "@views.route("/Tkinter")" and use Tkinter for that part of the web app? Once again Thanks for the tutorial!

  3. can anyone please help explain to me why as soon as i try to run the code after minutes 3:50 , i got the ModuleNotFoundError: No module named 'flask'…….i already followed Tim initial tutorial to install the module & succesfully install it…yet still i got this message…same goes when i try to learn Kivy, eventhough it said succesfully installed, seems like the system didnt acknowledge that i have that module in my computer…PLEASE anyone that kind enough to explain what is should do……i'm using windows 10 & latest python version…3.10 if not mistaken…Thanks in advance

  4. Thank you, thank you, thank you, this is exactly what I was looking for and ironically enough I watched your video at 2X because I don't a lot of free time. That said, I am trying to get back into coding and need to get caught up and this will help. Again, thanks and God bless,

  5. is there a way to learn python theories fast? i'm just an amateur that uses codeigniter with a little basic knowledge at php, but i wanna upgrade my skills so it can follows the requirements in developed countries.

Leave A Reply

Please enter your comment!
Please enter your name here