Make A Python Website As Fast As Possible!

  Рет қаралды 675,143

Tech With Tim

Tech With Tim

Күн бұрын

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: www.altium.com/yt/techwithtim
📄 Resources 📄
Fix Pip (Windows): • How to Install Pygame ...
Fix Pip (Mac): • How to Install Pygame ...
Flask Tutorial Series: • Flask Tutorial #1 - Ho...
Flask Blog: • Python Blog Tutorial #...
Python Website Full Tutorial: • Python Website Full Tu...
Flask REST API: • Python REST API Tutori...
⭐️ 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: tech-with-tim.teachable.com/p...
👕 Merchandise: teespring.com/stores/tech-wit...
🔗 Social Medias 🔗
📸 Instagram: / tech_with_tim
📱 Twitter: / techwithtimm
⭐ Discord: / discord
📝 LinkedIn: / tim-ruscica-82631b179
🌎 Website: techwithtim.net
📂 GitHub: github.com/techwithtim
🔊 Podcast: anchor.fm/tech-with-tim
🎬 My KZfaq Gear 🎬
🎥 Main Camera (EOS Canon 90D): amzn.to/3cY23y9
🎥 Secondary Camera (Panasonic Lumix G7): amzn.to/3fl2iEV
📹 Main Lens (EFS 24mm f/2.8): amzn.to/2Yuol5r
🕹 Tripod: amzn.to/3hpSprv
🎤 Main Microphone (Rode NT1): amzn.to/2HrZxXc
🎤 Secondary Microphone (Synco Wireless Lapel System): amzn.to/3e07Swl
🎤 Third Microphone (Rode NTG4+): amzn.to/3oi0v8Z
☀️ Lights: amzn.to/2ApeiXr
⌨ Keyboard (Daskeyboard 4Q): amzn.to/2YpN5vm
🖱 Mouse (Logitech MX Master): amzn.to/2HsmRDN
📸 Webcam (Logitech 1080p Pro): amzn.to/2B2IXcQ
📢 Speaker (Beats Pill): amzn.to/2XYc5ef
🎧 Headphones (Bose Quiet Comfort 35): amzn.to/2MWbl3e
🌞 Lamp (BenQ E-reading Lamp): amzn.to/3e0UCr8
🌞 Secondary Lamp (BenQ Screenbar Plus): amzn.to/30Dtafi
💻 Monitor (BenQ EX2780Q): amzn.to/2HsmUPZ
💻 Monitor (LG Ultrawide 34WN750): amzn.to/3dSD7tS
🎙 Mic Boom Arm (Rode PSA 1): amzn.to/30EZw9m
🎚 Audio Interface (Focusrite Scarlet 4i4): amzn.to/2TjXsih
💸 Donations 💸
💵 One-Time Donations: www.paypal.com/donate?hosted_...
💰 Patreon: / techwithtim
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
⭐️ Tags ⭐️
- Tech With Tim
- Python
- Website
- Flask
- JSON
- Altium
⭐️ Hashtags ⭐️
#TechWithTim #PythonWebsite

Пікірлер: 289
@saliadel5238
@saliadel5238 2 жыл бұрын
This man outputs more programmers than many college professors
@mike4617
@mike4617 2 жыл бұрын
@@nyx_9841 pretend Tim is a professor and then read the sentence again
@dr.2k223
@dr.2k223 2 жыл бұрын
لا بربك 😂😂
@evanholyfield8042
@evanholyfield8042 2 жыл бұрын
Yup, it do be like that
@Dezdichado1000
@Dezdichado1000 Жыл бұрын
the guy literally just narrates his code verbatim and that counts as teaching ?
@karammm
@karammm 7 ай бұрын
not as a joke, seriously he does.
@Terroid
@Terroid 2 жыл бұрын
I recently attended an interschool hackathon and won third place I learnt a lot from your flask series, thanks a lot :)
@8koi139
@8koi139 2 жыл бұрын
Yoo congrats!!
@4TH4RV
@4TH4RV 2 жыл бұрын
Congrats
@doriandoussain1528
@doriandoussain1528 2 жыл бұрын
wp
@jpeg.600x2
@jpeg.600x2 2 жыл бұрын
how the fuck
@jigri_pokhri
@jigri_pokhri 2 жыл бұрын
GG
@DarrenSemotiuk
@DarrenSemotiuk 11 ай бұрын
This is an EXCELLENT "refresher" after going through your playlist of 10 or 11 videos. In 22 minutes you go through almost all the same things (other than the database stuff), plus a few extras. It really helped reinforce what I have just learned!
@xdemon5015
@xdemon5015 2 жыл бұрын
First person I've come across who explained Flask like a normal human being. Been struggling with this for a while until I saw this video. Thanks man
@roaddragon5015
@roaddragon5015 8 ай бұрын
Being an embedded engineer, knowing little or nothing about the world of web development, the format of this kind of short video but giving a nice overview is enriching. Thanks a lot for this knowledge sharing.
@filiptalarek5889
@filiptalarek5889 2 жыл бұрын
I watched it in several steps. Was VERY helpful! Thank you :)
@dcsquad430
@dcsquad430 2 жыл бұрын
Tim, you are a life saver. This is great stuff.
@xeliqa3921
@xeliqa3921 2 жыл бұрын
You can also use a bang sign '!' and it'll also generate boiler plate HTML5. Marginally quicker as less characters to write ;)
@HHK26
@HHK26 2 жыл бұрын
Uh been waiting for this for soo long, thanks Tim love your content ❣
@ianrajkumar
@ianrajkumar 2 жыл бұрын
Tim: "I am going to fast as I can" **me watching at 2x **
@8koi139
@8koi139 2 жыл бұрын
*Me using PureTube to watch at 3x while typing faster tha lighting* Ha~ fool
@MotionlessBottle
@MotionlessBottle 2 жыл бұрын
@@8koi139 bruh
@vaishalirama
@vaishalirama 2 жыл бұрын
😂😂😂😂
@ahmusg8054
@ahmusg8054 2 жыл бұрын
lmao same
@kitgary
@kitgary 2 жыл бұрын
This guy has better programming skills than most professors!
@blackchristiangeek
@blackchristiangeek 2 жыл бұрын
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,
@tomharner83
@tomharner83 2 жыл бұрын
This was a better format than I would have expected.
@loosabway3400
@loosabway3400 11 ай бұрын
Excellent - economic, on point, no diversions and efficient. Respect.
@akiratoriyama1320
@akiratoriyama1320 2 жыл бұрын
God!! This is an excellent video!! High quality content!! You will help many many programmers!!
@I_Follow_Jesus
@I_Follow_Jesus 2 жыл бұрын
Your content is way more informative than classes I’ve taken on Coursera and Udemy
@That1Accountant
@That1Accountant 2 жыл бұрын
I learned more in this 20 minute video than I usually do in a 4 hour video
@lennox_wrld
@lennox_wrld Жыл бұрын
so helpful, i learnt so much in 22 minutes and 22 seconds
@thestickbuster1852
@thestickbuster1852 7 ай бұрын
Nice one tim! couldn't have made a website without you man
@ivanmosquera7122
@ivanmosquera7122 7 ай бұрын
I have to agree with so many here! Great work, excellent tutorial, right to the point, well explained and the examples are simple enough but useful to understand the concepts. Thank you so much. I just subscribed to your channel.
@cachaceirosdohawai3070
@cachaceirosdohawai3070 2 жыл бұрын
Hey tim, loving all your flask videos, any plans on making a heroku for flask any time soon, cant find anything helpful on the internet and you are my favorite teacher
@matthewzelt5181
@matthewzelt5181 5 ай бұрын
a masterclass in how to make a quick, easy and SUPER informational video
@aarushiagarwal8938
@aarushiagarwal8938 Жыл бұрын
Great video Can't express in words how much it helped me 🎉🎉 thankyou ❤
@nanthakumarjj3369
@nanthakumarjj3369 2 жыл бұрын
Thanks, it's more than enough to understand all major elements.
@nimepeter
@nimepeter Жыл бұрын
That was amazing Tim, well done.
@mookjais
@mookjais Жыл бұрын
This was outstanding, thanks!!
@SeanghortBorn
@SeanghortBorn Жыл бұрын
Very simple and easy to understand. Thanks for your sharing.
@shihyuehjan3835
@shihyuehjan3835 Жыл бұрын
not for me :')
@ninavanleeuwen1183
@ninavanleeuwen1183 8 ай бұрын
im so glad i found your channel. thank you tim
@alexanderoransky7601
@alexanderoransky7601 2 жыл бұрын
Hi Tim! Great tutorial! Can you please make a tutorial on Sanic framework/server?
@GunCraft76
@GunCraft76 5 ай бұрын
Best intro to Python web dev.. LOVE IT BRO! Thanks
@babusivaprakasam9846
@babusivaprakasam9846 Жыл бұрын
Brilliant content and speed. Loved it
@trevormckellen5613
@trevormckellen5613 2 жыл бұрын
This is actually so helpful
@madnecessity
@madnecessity 2 жыл бұрын
Thanks for making this video Really helped me out
@franciscopacio1237
@franciscopacio1237 2 жыл бұрын
Amazing vid man! Keep it going!
@gasrat
@gasrat 2 жыл бұрын
you explain things so fucking well like nobody else does this is great
@georgechannyeinlwin6743
@georgechannyeinlwin6743 2 жыл бұрын
I've been waiting for this
@eatdapoopoo67
@eatdapoopoo67 2 жыл бұрын
awesome video Tim, thank you
@taylorcummings473
@taylorcummings473 4 ай бұрын
This was amazing and you helped a lot! Thank you!
@msec7188
@msec7188 2 жыл бұрын
I would love to see something like this with fastapi
@XBLOR88
@XBLOR88 2 жыл бұрын
Yes please do it 🔥
@OneworldKW
@OneworldKW 2 жыл бұрын
Please
@iPhoneTopics
@iPhoneTopics Жыл бұрын
Thank you. Really useful and awesome..
@bad_robot
@bad_robot Жыл бұрын
this dude is an absolute beast thank God for this video
@erikmartinson5411
@erikmartinson5411 2 жыл бұрын
Would you consider making some flask + tabulator(js) tutorials?
@FedoraRose
@FedoraRose 2 жыл бұрын
It would be cool if you could make like a school platform with messages and stuff like that in Python and flask
@rogermillamilla3913
@rogermillamilla3913 Жыл бұрын
thanks Tim very good lesson
@academiereparation3662
@academiereparation3662 Жыл бұрын
I just have to learn Python, so this is very helpful, Monsieur.
@haimkichik
@haimkichik Жыл бұрын
WOW. Thank u so much. Your actual unkowledge Is wisdom for us.
@AaronGayah-dr8lu
@AaronGayah-dr8lu 2 ай бұрын
Excellent tutorial, thank you.
@bubble249
@bubble249 2 жыл бұрын
I personally didnt get Altium, but that ad inspired me to get a PCB designer
@amareyutube3094
@amareyutube3094 2 жыл бұрын
Thanks!!!! its really Helpfull
@DavidWiehls
@DavidWiehls Жыл бұрын
Thanks for the explanation!
@wrzq
@wrzq 7 ай бұрын
Beautiful tutorial, thank you Tim!
@TechWithTim
@TechWithTim 7 ай бұрын
Glad you liked it!
@cursoderobotica
@cursoderobotica 2 жыл бұрын
Amazing!! You rock!
@liriani
@liriani 2 жыл бұрын
Something that has to to more with js would be cool like for example react or other frameworks with flask
@blazinthat7439
@blazinthat7439 2 жыл бұрын
At 8:00 I have all my code the same as Tim but when I run it my main page says Home Page instead of going to /views. Im on Visual Studio Code with python 3.9.6 and Flask 2.0.2
@will2see
@will2see 2 жыл бұрын
Hi Tim, what keyboard are you using if I may ask? BTW, thank you for this great and fast tutorial!
@wackyator
@wackyator 2 жыл бұрын
look in the description dummy
@CodyVideoGraphy1
@CodyVideoGraphy1 Жыл бұрын
thank you for this video!
@JP12313
@JP12313 2 жыл бұрын
Great content!
@samreenfathima8726
@samreenfathima8726 2 жыл бұрын
Thank you so much!
@ninjanape
@ninjanape 2 жыл бұрын
awesome thank you!
@isakdahlstrom
@isakdahlstrom Жыл бұрын
Thanks for this video!
@natureloverJ
@natureloverJ Жыл бұрын
Awesome! Coolness = 10 Liked it .. 👏 👏
@StefanGabrielRoHu
@StefanGabrielRoHu 8 ай бұрын
Thank you, your demonstrations are very useful for beginners!
@user-uh1yf2fd1e
@user-uh1yf2fd1e 7 ай бұрын
Thank you man
@skepisLT
@skepisLT Жыл бұрын
Thank you very much man
@ShowYourSkillS19
@ShowYourSkillS19 2 жыл бұрын
Absolute this is good tutorial 👍👍👍
@qazwsxedcrfvtgb8877
@qazwsxedcrfvtgb8877 2 жыл бұрын
THANK YOU!!!
@onlyforscience8255
@onlyforscience8255 2 жыл бұрын
Your T-shirt explained everything to us.
@mrsxber1916
@mrsxber1916 2 жыл бұрын
Seriously 😂
@whampoa8647
@whampoa8647 5 ай бұрын
great video :) thanks!
@mahmoudhosny8881
@mahmoudhosny8881 2 жыл бұрын
A watchdog tutorial would be amazing! There’s isn’t that much about it out there.
@Drewbai52
@Drewbai52 11 ай бұрын
Like the lack of BS, Straight into the breach!
@BrlU
@BrlU Жыл бұрын
Bro you are genius!!
@dernikkl
@dernikkl 2 жыл бұрын
Is a python Webserver (Flask) faster than a Apache2 or Nginx? Are you able to include php with a pip libary or so?
@John_765
@John_765 Жыл бұрын
Thanks!
@charchitdahiya986
@charchitdahiya986 2 жыл бұрын
You can add js file in head tag using defer attribute.
@sabarih7242
@sabarih7242 2 жыл бұрын
Hey Tim, I tried to use pymongo with flask but it show me some error like "The process is running on a different thread" What can I do now?
@Bucksauce_
@Bucksauce_ Жыл бұрын
Great Video! Thanks Heaps, I am having trouble with url_prefix, how do I trouble shoot?
@fawwazyo9169
@fawwazyo9169 Жыл бұрын
why my website become full blank of white after changing the return to render template("index.html") ???? can someone help me
@saschion
@saschion 2 жыл бұрын
Sorry, but what is the advantage of this? Isn't it easier just to create a website by html, css and js? Sorry for asking, im new to this and just was wondering
@SahraClayton
@SahraClayton 2 жыл бұрын
Tim, how do you get that orange border around file explorer in windows
@FutBoi1
@FutBoi1 Жыл бұрын
I'm able to get the home page going but whenever i try to go to the "/profile" route i get a "TypeError" and it says missing 1 required positional argument: 'username', even though i have the " def profile(username): ". any ideas?
@Ahrgos
@Ahrgos Жыл бұрын
When I do this i am in Pycharm using the command line there. When I execute the command to run the file no response happens. Any idea what's going wrong?
@pablopoggio
@pablopoggio Жыл бұрын
Tim sos el mejor, sos el Messi de la Matrix.
@christislight
@christislight 5 ай бұрын
Great video brother! Building an AI Chatbot with flask
@homeoffice3524
@homeoffice3524 Жыл бұрын
I’m new in python and I have a quick question. So in python you still build pages in html/css only instead of php is is flask? Correct?
@hdkimo
@hdkimo Жыл бұрын
I love this
@estas9449
@estas9449 2 жыл бұрын
what python topics should I learn to make this?
@mikejadwin1304
@mikejadwin1304 Жыл бұрын
0.75 playback speed is perfect for this lol. Thank you!
@TOBY001
@TOBY001 Жыл бұрын
😆👍
@MuffinLover1999
@MuffinLover1999 11 ай бұрын
Hey on the first part of importing flask , i get invalid syntax but its installed proprerly
@vanessacrosbyfitzgerald
@vanessacrosbyfitzgerald Жыл бұрын
Do you have a tut on connecting pyttsx3 script with Flask (html frontend) ?
@LakeGuy2010
@LakeGuy2010 Жыл бұрын
4:03 mine does NOT show the same output in the Terminal. How did you get this output?
@PointedBowl
@PointedBowl 2 жыл бұрын
hm. i cant seem to import anything i dowload. with the import pygame code. idk if u got a tutorial to fix that it says its a 'problem' lemme get the output message: Import "flask" could not be resolved from source
@luisloyola3591
@luisloyola3591 2 жыл бұрын
theme of your vs code ? thx for vids
@willnovan6373
@willnovan6373 2 жыл бұрын
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.
@wolfmaiskolf1380
@wolfmaiskolf1380 2 жыл бұрын
Hello tim, in literally the first step im getting a syntaxerror: invalid syntax for the reason File "", line 1. What is it?
@Ivan-dt9mc
@Ivan-dt9mc Жыл бұрын
This man outputs more programmers than his projects
@MACD69
@MACD69 2 жыл бұрын
Can you combine sqlalchemy with blueprints?
@shawnshoptaugh4907
@shawnshoptaugh4907 9 ай бұрын
I get an error when typing the command coda activate base. Do I need something else installed other than Flask? Update: Nevermind, I had to use python -m flask run
@lucasperin6585
@lucasperin6585 2 жыл бұрын
bro what is your VS Code theme? i really like that
@ryanthelin6867
@ryanthelin6867 2 жыл бұрын
Hi I'm looking into learning Python, and I was also looking at maybe doing some web design. What do you guys think is better/what are the differences? Flask or Django? Thanks heaps!
@Frazer227
@Frazer227 2 жыл бұрын
Django. Flask is more for quick webpages whereas Django is more for entirely fleshed out websites. KZfaq is mostly Django.
@ryanthelin6867
@ryanthelin6867 2 жыл бұрын
@@Frazer227 Ok, thanks heaps!
@RonalRomeroVergel
@RonalRomeroVergel 11 ай бұрын
buddy i have a python project which is a chat bot... how can i upload that project to a web page??
10 Python Shortcuts You Need To Know
27:27
Tech With Tim
Рет қаралды 292 М.
How to OVER Engineer a Website // What is a Tech Stack?
11:20
Fireship
Рет қаралды 2,3 МЛН
Каха заблудился в горах
00:57
К-Media
Рет қаралды 8 МЛН
Самый Молодой Актёр Без Оскара 😂
00:13
Глеб Рандалайнен
Рет қаралды 12 МЛН
How to put an HTML website online (on the Internet)
29:37
SuperSimpleDev
Рет қаралды 1,5 МЛН
Create A Python API in 12 Minutes
12:05
Tech With Tim
Рет қаралды 598 М.
Python or JavaScript - Which One Should YOU Learn?
8:05
Tech With Tim
Рет қаралды 172 М.
build a meme Python website (Flask Tutorial for Beginners)
13:30
NetworkChuck
Рет қаралды 470 М.
Please Master These 10 Python Functions…
22:17
Tech With Tim
Рет қаралды 105 М.
Python Website Full Tutorial - Flask, Authentication, Databases & More
2:16:40
20 Programming Projects That Will Make You A God At Coding
14:27
The Coding Sloth
Рет қаралды 791 М.
The most important Python script I ever wrote
19:58
John Watson Rooney
Рет қаралды 174 М.
How I Would Learn Python FAST in 2024 (if I could start over)
12:19
Thu Vu data analytics
Рет қаралды 130 М.