Make A Python Website As Fast As Possible!

  Рет қаралды 650,930

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 KZbin 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

Пікірлер: 281
@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 9 ай бұрын
the guy literally just narrates his code verbatim and that counts as teaching ?
@karammm
@karammm 5 ай бұрын
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
@xdemon5015
@xdemon5015 Жыл бұрын
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
@DarrenSemotiuk
@DarrenSemotiuk 9 ай бұрын
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!
@roaddragon5015
@roaddragon5015 6 ай бұрын
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 :)
@HHK26
@HHK26 2 жыл бұрын
Uh been waiting for this for soo long, thanks Tim love your content ❣
@tomharner83
@tomharner83 2 жыл бұрын
This was a better format than I would have expected.
@kitgary
@kitgary 2 жыл бұрын
This guy has better programming skills than most professors!
@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
@That1Accountant
@That1Accountant Жыл бұрын
I learned more in this 20 minute video than I usually do in a 4 hour video
@dcsquad430
@dcsquad430 2 жыл бұрын
Tim, you are a life saver. This is great stuff.
@I_Follow_Jesus
@I_Follow_Jesus 2 жыл бұрын
Your content is way more informative than classes I’ve taken on Coursera and Udemy
@loosabway3400
@loosabway3400 9 ай бұрын
Excellent - economic, on point, no diversions and efficient. Respect.
@lennox_wrld
@lennox_wrld Жыл бұрын
so helpful, i learnt so much in 22 minutes and 22 seconds
@thestickbuster1852
@thestickbuster1852 4 ай бұрын
Nice one tim! couldn't have made a website without you man
@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,
@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 ;)
@akiratoriyama1320
@akiratoriyama1320 2 жыл бұрын
God!! This is an excellent video!! High quality content!! You will help many many programmers!!
@nimepeter
@nimepeter 11 ай бұрын
That was amazing Tim, well done.
@matthewzelt5181
@matthewzelt5181 2 ай бұрын
a masterclass in how to make a quick, easy and SUPER informational video
@ninavanleeuwen1183
@ninavanleeuwen1183 5 ай бұрын
im so glad i found your channel. thank you tim
@GunCraft76
@GunCraft76 2 ай бұрын
Best intro to Python web dev.. LOVE IT BRO! Thanks
@ivanmosquera7122
@ivanmosquera7122 4 ай бұрын
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.
@aarushiagarwal8938
@aarushiagarwal8938 10 ай бұрын
Great video Can't express in words how much it helped me 🎉🎉 thankyou ❤
@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
@trevormckellen5613
@trevormckellen5613 2 жыл бұрын
This is actually so helpful
@mookjais
@mookjais Жыл бұрын
This was outstanding, thanks!!
@franciscopacio1237
@franciscopacio1237 2 жыл бұрын
Amazing vid man! Keep it going!
@babusivaprakasam9846
@babusivaprakasam9846 Жыл бұрын
Brilliant content and speed. Loved it
@nanthakumarjj3369
@nanthakumarjj3369 2 жыл бұрын
Thanks, it's more than enough to understand all major elements.
@madnecessity
@madnecessity Жыл бұрын
Thanks for making this video Really helped me out
@georgechannyeinlwin6743
@georgechannyeinlwin6743 2 жыл бұрын
I've been waiting for this
@SeanghortBorn
@SeanghortBorn Жыл бұрын
Very simple and easy to understand. Thanks for your sharing.
@shihyuehjan3835
@shihyuehjan3835 10 ай бұрын
not for me :')
@alexanderoransky7601
@alexanderoransky7601 2 жыл бұрын
Hi Tim! Great tutorial! Can you please make a tutorial on Sanic framework/server?
@gasrat
@gasrat 2 жыл бұрын
you explain things so fucking well like nobody else does this is great
@taylorcummings473
@taylorcummings473 2 ай бұрын
This was amazing and you helped a lot! Thank you!
@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?
@wrzq
@wrzq 4 ай бұрын
Beautiful tutorial, thank you Tim!
@TechWithTim
@TechWithTim 4 ай бұрын
Glad you liked it!
@DavidWiehls
@DavidWiehls Жыл бұрын
Thanks for the explanation!
@eatdapoopoo67
@eatdapoopoo67 2 жыл бұрын
awesome video Tim, thank you
@bad_robot
@bad_robot 10 ай бұрын
this dude is an absolute beast thank God for this video
@haimkichik
@haimkichik 10 ай бұрын
WOW. Thank u so much. Your actual unkowledge Is wisdom for us.
@amareyutube3094
@amareyutube3094 2 жыл бұрын
Thanks!!!! its really Helpfull
@msec7188
@msec7188 2 жыл бұрын
I would love to see something like this with fastapi
@XBLOR88
@XBLOR88 2 жыл бұрын
Yes please do it 🔥
@OneworldKW
@OneworldKW 2 жыл бұрын
Please
@cursoderobotica
@cursoderobotica 2 жыл бұрын
Amazing!! You rock!
@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
@erikmartinson5411
@erikmartinson5411 2 жыл бұрын
Would you consider making some flask + tabulator(js) tutorials?
@RonalRomeroVergel
@RonalRomeroVergel 8 ай бұрын
buddy i have a python project which is a chat bot... how can i upload that project to a web page??
@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
@isakdahlstrom
@isakdahlstrom 9 ай бұрын
Thanks for this video!
@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
@BrlU
@BrlU Жыл бұрын
Bro you are genius!!
@natureloverJ
@natureloverJ 10 ай бұрын
Awesome! Coolness = 10 Liked it .. 👏 👏
@bubble249
@bubble249 2 жыл бұрын
I personally didnt get Altium, but that ad inspired me to get a PCB designer
@ShowYourSkillS19
@ShowYourSkillS19 2 жыл бұрын
Absolute this is good tutorial 👍👍👍
@iPhoneTopics
@iPhoneTopics Жыл бұрын
Thank you. Really useful and awesome..
@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?
@Cody760
@Cody760 Жыл бұрын
thank you for this video!
@Drewbai52
@Drewbai52 9 ай бұрын
Like the lack of BS, Straight into the breach!
@rogermillamilla3913
@rogermillamilla3913 Жыл бұрын
thanks Tim very good lesson
@academiereparation3662
@academiereparation3662 Жыл бұрын
I just have to learn Python, so this is very helpful, Monsieur.
@MuffinLover1999
@MuffinLover1999 8 ай бұрын
Hey on the first part of importing flask , i get invalid syntax but its installed proprerly
@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?
@josepadilla4057
@josepadilla4057 2 жыл бұрын
Great content!
@onlyforscience8255
@onlyforscience8255 2 жыл бұрын
Your T-shirt explained everything to us.
@mrsxber1916
@mrsxber1916 2 жыл бұрын
Seriously 😂
@Bucksauce_
@Bucksauce_ Жыл бұрын
Great Video! Thanks Heaps, I am having trouble with url_prefix, how do I trouble shoot?
@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
@CraigClayton-bk3ze
@CraigClayton-bk3ze 2 жыл бұрын
Tim, how do you get that orange border around file explorer in windows
@StefanGabrielRoHu
@StefanGabrielRoHu 5 ай бұрын
Thank you, your demonstrations are very useful for beginners!
@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?
@user-uh1yf2fd1e
@user-uh1yf2fd1e 4 ай бұрын
Thank you man
@liriani
@liriani 2 жыл бұрын
Something that has to to more with js would be cool like for example react or other frameworks with flask
@pablopoggio
@pablopoggio Жыл бұрын
Tim sos el mejor, sos el Messi de la Matrix.
@FutBoi1
@FutBoi1 11 ай бұрын
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?
@qazwsxedcrfvtgb8877
@qazwsxedcrfvtgb8877 2 жыл бұрын
THANK YOU!!!
@christislight
@christislight 2 ай бұрын
Great video brother! Building an AI Chatbot with flask
@luisloyola3591
@luisloyola3591 2 жыл бұрын
theme of your vs code ? thx for vids
@samreenfathima8726
@samreenfathima8726 2 жыл бұрын
Thank you so much!
@whampoa8647
@whampoa8647 2 ай бұрын
great video :) thanks!
@fawwazyo9169
@fawwazyo9169 Жыл бұрын
why my website become full blank of white after changing the return to render template("index.html") ???? can someone help me
@vanessacrosbyfitzgerald
@vanessacrosbyfitzgerald Жыл бұрын
Do you have a tut on connecting pyttsx3 script with Flask (html frontend) ?
@lucasperin6585
@lucasperin6585 2 жыл бұрын
bro what is your VS Code theme? i really like that
@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.
@ninjanape
@ninjanape 2 жыл бұрын
awesome thank you!
@LakeGuy2010
@LakeGuy2010 Жыл бұрын
4:03 mine does NOT show the same output in the Terminal. How did you get this output?
@skepisLT
@skepisLT Жыл бұрын
Thank you very much man
@mahmoudhosny8881
@mahmoudhosny8881 2 жыл бұрын
A watchdog tutorial would be amazing! There’s isn’t that much about it out there.
@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?
@muneebhassan528
@muneebhassan528 2 жыл бұрын
What's the Name of Font you are using in VSCode Sir?
@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
@user-el3do1vt3l
@user-el3do1vt3l Ай бұрын
ive come across a problem. When I am writing from flask import Flask One Yellow line is coming up under flask and stating Import "flask" could not be resolved from source Pylance (reportMissingModuleSource) . Also, I am able to do the work with this package also successfully. But the thing is, I am not able to use autosuggesstions for Classes and methods very well.
@shawnshoptaugh4907
@shawnshoptaugh4907 6 ай бұрын
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
@mikejadwin1304
@mikejadwin1304 Жыл бұрын
0.75 playback speed is perfect for this lol. Thank you!
@TOBY001
@TOBY001 Жыл бұрын
😆👍
@MACD69
@MACD69 2 жыл бұрын
Can you combine sqlalchemy with blueprints?
@Ivan-dt9mc
@Ivan-dt9mc Жыл бұрын
This man outputs more programmers than his projects
@didisamueltaneo9185
@didisamueltaneo9185 Жыл бұрын
Hi Tim. How can take course from you?
@Luc1an_
@Luc1an_ 2 жыл бұрын
I want to open web cam and process the video using opencv. I am able to do it locally but can someone tell me how to do it when I have my app deployed on the cloud as the server won't be having a web cam nor will it send that stream to the client automatically.
@John_765
@John_765 11 ай бұрын
Thanks!
@basim1163
@basim1163 2 жыл бұрын
bro which are the resources you used to learn python
Python As Fast as Possible - Learn Python in ~75 Minutes
1:19:41
Tech With Tim
Рет қаралды 1,7 МЛН
1 класс vs 11 класс (рисунок)
00:37
БЕРТ
Рет қаралды 4,7 МЛН
маленький брат прыгает в бассейн
00:15
GL Show Russian
Рет қаралды 2,4 МЛН
McDonald’s MCNUGGET PURSE?! #shorts
00:11
Lauren Godwin
Рет қаралды 32 МЛН
Python Website Full Tutorial - Flask, Authentication, Databases & More
2:16:40
How to put an HTML website online (on the Internet)
29:37
SuperSimpleDev
Рет қаралды 1,4 МЛН
build a meme Python website (Flask Tutorial for Beginners)
13:30
NetworkChuck
Рет қаралды 438 М.
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Internet Made Coder
Рет қаралды 1,4 МЛН
How To Actually Make $10k A Month Coding
14:54
Tech With Tim
Рет қаралды 48 М.
I Made 200 Python Projects...Here Are My 5 FAVORITES
11:23
Tech With Tim
Рет қаралды 109 М.
Create A Python API in 12 Minutes
12:05
Tech With Tim
Рет қаралды 517 М.
Has Generative AI Already Peaked? - Computerphile
12:48
Computerphile
Рет қаралды 189 М.
Python Django Tutorial for Beginners
1:02:36
Programming with Mosh
Рет қаралды 2,3 МЛН
Automate your job with Python
6:07
John Watson Rooney
Рет қаралды 289 М.
1 класс vs 11 класс (рисунок)
00:37
БЕРТ
Рет қаралды 4,7 МЛН