Make A Python Website As Fast As Possible!

Sdílet
Vložit
  • čas přidán 25. 06. 2024
  • 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 CZcams 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

Komentáře • 287

  • @saliadel5238
    @saliadel5238 Před 2 lety +620

    This man outputs more programmers than many college professors

    • @mike4617
      @mike4617 Před 2 lety +18

      @@nyx_9841 pretend Tim is a professor and then read the sentence again

    • @dr.2k223
      @dr.2k223 Před 2 lety +3

      لا بربك 😂😂

    • @evanholyfield8042
      @evanholyfield8042 Před 2 lety +1

      Yup, it do be like that

    • @Dezdichado1000
      @Dezdichado1000 Před 11 měsíci +3

      the guy literally just narrates his code verbatim and that counts as teaching ?

    • @karammm
      @karammm Před 6 měsíci

      not as a joke, seriously he does.

  • @Terroid
    @Terroid Před 2 lety +247

    I recently attended an interschool hackathon and won third place
    I learnt a lot from your flask series, thanks a lot :)

  • @DarrenSemotiuk
    @DarrenSemotiuk Před 10 měsíci +13

    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 Před 2 lety +53

    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 Před 7 měsíci +3

    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 Před 2 lety +6

    I watched it in several steps. Was VERY helpful! Thank you :)

  • @HHK26
    @HHK26 Před 2 lety +5

    Uh been waiting for this for soo long, thanks Tim love your content ❣

  • @dcsquad430
    @dcsquad430 Před 2 lety +6

    Tim, you are a life saver. This is great stuff.

  • @tomharner83
    @tomharner83 Před 2 lety +1

    This was a better format than I would have expected.

  • @kitgary
    @kitgary Před 2 lety +22

    This guy has better programming skills than most professors!

  • @xeliqa3921
    @xeliqa3921 Před 2 lety +34

    You can also use a bang sign '!' and it'll also generate boiler plate HTML5. Marginally quicker as less characters to write ;)

  • @ianrajkumar
    @ianrajkumar Před 2 lety +65

    Tim: "I am going to fast as I can"
    **me watching at 2x **

  • @loosabway3400
    @loosabway3400 Před 10 měsíci +2

    Excellent - economic, on point, no diversions and efficient.
    Respect.

  • @That1Accountant
    @That1Accountant Před rokem +67

    I learned more in this 20 minute video than I usually do in a 4 hour video

  • @lennox_wrld
    @lennox_wrld Před rokem +4

    so helpful, i learnt so much in 22 minutes and 22 seconds

  • @matthewzelt5181
    @matthewzelt5181 Před 4 měsíci

    a masterclass in how to make a quick, easy and SUPER informational video

  • @thestickbuster1852
    @thestickbuster1852 Před 5 měsíci +1

    Nice one tim! couldn't have made a website without you man

  • @blackchristiangeek
    @blackchristiangeek Před 2 lety +10

    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,

  • @akiratoriyama1320
    @akiratoriyama1320 Před 2 lety +2

    God!! This is an excellent video!! High quality content!! You will help many many programmers!!

  • @I_Follow_Jesus
    @I_Follow_Jesus Před 2 lety +9

    Your content is way more informative than classes I’ve taken on Coursera and Udemy

  • @nimepeter
    @nimepeter Před rokem

    That was amazing Tim, well done.

  • @mookjais
    @mookjais Před rokem +3

    This was outstanding, thanks!!

  • @nanthakumarjj3369
    @nanthakumarjj3369 Před 2 lety

    Thanks, it's more than enough to understand all major elements.

  • @ninavanleeuwen1183
    @ninavanleeuwen1183 Před 7 měsíci

    im so glad i found your channel. thank you tim

  • @trevormckellen5613
    @trevormckellen5613 Před 2 lety +1

    This is actually so helpful

  • @aarushiagarwal8938
    @aarushiagarwal8938 Před 11 měsíci +1

    Great video
    Can't express in words how much it helped me
    🎉🎉 thankyou ❤

  • @GunCraft76
    @GunCraft76 Před 4 měsíci

    Best intro to Python web dev.. LOVE IT BRO! Thanks

  • @georgechannyeinlwin6743
    @georgechannyeinlwin6743 Před 2 lety +1

    I've been waiting for this

  • @ivanmosquera7122
    @ivanmosquera7122 Před 5 měsíci

    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.

  • @babusivaprakasam9846
    @babusivaprakasam9846 Před rokem

    Brilliant content and speed. Loved it

  • @SeanghortBorn
    @SeanghortBorn Před rokem +3

    Very simple and easy to understand. Thanks for your sharing.

  • @gasrat
    @gasrat Před 2 lety

    you explain things so fucking well like nobody else does this is great

  • @cachaceirosdohawai3070
    @cachaceirosdohawai3070 Před 2 lety +1

    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

  • @eatdapoopoo67
    @eatdapoopoo67 Před 2 lety

    awesome video Tim, thank you

  • @madnecessity
    @madnecessity Před rokem

    Thanks for making this video
    Really helped me out

  • @AaronGayah-dr8lu
    @AaronGayah-dr8lu Před 25 dny

    Excellent tutorial, thank you.

  • @franciscopacio1237
    @franciscopacio1237 Před 2 lety

    Amazing vid man! Keep it going!

  • @taylorcummings473
    @taylorcummings473 Před 3 měsíci

    This was amazing and you helped a lot! Thank you!

  • @iPhoneTopics
    @iPhoneTopics Před rokem

    Thank you. Really useful and awesome..

  • @msec7188
    @msec7188 Před 2 lety +96

    I would love to see something like this with fastapi

  • @rogermillamilla3913
    @rogermillamilla3913 Před rokem

    thanks Tim very good lesson

  • @bad_robot
    @bad_robot Před rokem

    this dude is an absolute beast thank God for this video

  • @DavidWiehls
    @DavidWiehls Před rokem

    Thanks for the explanation!

  • @alexanderoransky7601
    @alexanderoransky7601 Před 2 lety +1

    Hi Tim! Great tutorial! Can you please make a tutorial on Sanic framework/server?

  • @wrzq
    @wrzq Před 6 měsíci

    Beautiful tutorial, thank you Tim!

  • @cursoderobotica
    @cursoderobotica Před 2 lety

    Amazing!! You rock!

  • @amareyutube3094
    @amareyutube3094 Před 2 lety

    Thanks!!!!
    its really Helpfull

  • @haimkichik
    @haimkichik Před 11 měsíci

    WOW. Thank u so much. Your actual unkowledge Is wisdom for us.

  • @whampoa8647
    @whampoa8647 Před 4 měsíci

    great video :) thanks!

  • @bubble249
    @bubble249 Před 2 lety

    I personally didnt get Altium, but that ad inspired me to get a PCB designer

  • @isakdahlstrom
    @isakdahlstrom Před 11 měsíci

    Thanks for this video!

  • @Cody760
    @Cody760 Před rokem

    thank you for this video!

  • @JP12313
    @JP12313 Před 2 lety

    Great content!

  • @academiereparation3662

    I just have to learn Python, so this is very helpful, Monsieur.

  • @natureloverJ
    @natureloverJ Před rokem +1

    Awesome!
    Coolness = 10
    Liked it .. 👏 👏

  • @ShowYourSkillS19
    @ShowYourSkillS19 Před 2 lety

    Absolute this is good tutorial 👍👍👍

  • @Drewbai52
    @Drewbai52 Před 10 měsíci

    Like the lack of BS, Straight into the breach!

  • @user-uh1yf2fd1e
    @user-uh1yf2fd1e Před 5 měsíci

    Thank you man

  • @FedoraRose
    @FedoraRose Před 2 lety +3

    It would be cool if you could make like a school platform with messages and stuff like that in Python and flask

  • @StefanGabrielRoHu
    @StefanGabrielRoHu Před 6 měsíci

    Thank you, your demonstrations are very useful for beginners!

  • @BrlU
    @BrlU Před rokem

    Bro you are genius!!

  • @liriani
    @liriani Před 2 lety

    Something that has to to more with js would be cool like for example react or other frameworks with flask

  • @samreenfathima8726
    @samreenfathima8726 Před 2 lety

    Thank you so much!

  • @skepisLT
    @skepisLT Před rokem

    Thank you very much man

  • @ninjanape
    @ninjanape Před 2 lety

    awesome thank you!

  • @erikmartinson5411
    @erikmartinson5411 Před 2 lety +1

    Would you consider making some flask + tabulator(js) tutorials?

  • @qazwsxedcrfvtgb8877
    @qazwsxedcrfvtgb8877 Před 2 lety +1

    THANK YOU!!!

  • @will2see
    @will2see Před 2 lety +2

    Hi Tim, what keyboard are you using if I may ask? BTW, thank you for this great and fast tutorial!

    • @wackyator
      @wackyator Před 2 lety +1

      look in the description dummy

  • @onlyforscience8255
    @onlyforscience8255 Před 2 lety +2

    Your T-shirt explained everything to us.

  • @John_765
    @John_765 Před rokem

    Thanks!

  • @pablopoggio
    @pablopoggio Před rokem

    Tim sos el mejor, sos el Messi de la Matrix.

  • @mahmoudhosny8881
    @mahmoudhosny8881 Před 2 lety

    A watchdog tutorial would be amazing! There’s isn’t that much about it out there.

  • @christislight
    @christislight Před 4 měsíci

    Great video brother! Building an AI Chatbot with flask

  • @charchitdahiya986
    @charchitdahiya986 Před 2 lety

    You can add js file in head tag using defer attribute.

  • @blazinthat7439
    @blazinthat7439 Před 2 lety +4

    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

  • @SahraClayton
    @SahraClayton Před 2 lety

    Tim, how do you get that orange border around file explorer in windows

  • @hdkimo
    @hdkimo Před rokem

    I love this

  • @luisloyola3591
    @luisloyola3591 Před 2 lety

    theme of your vs code ? thx for vids

  • @RonalRomeroVergel
    @RonalRomeroVergel Před 9 měsíci

    buddy i have a python project which is a chat bot... how can i upload that project to a web page??

  • @redcraft612
    @redcraft612 Před 8 měsíci

    14:53 Excellent coolness.

  • @user-df1qm7zh5j
    @user-df1qm7zh5j Před 5 měsíci

    cool video)

  • @Bucksauce_
    @Bucksauce_ Před rokem +1

    Great Video! Thanks Heaps, I am having trouble with url_prefix, how do I trouble shoot?

  • @MuffinLover1999
    @MuffinLover1999 Před 9 měsíci +1

    Hey on the first part of importing flask , i get invalid syntax but its installed proprerly

  • @sabarih7242
    @sabarih7242 Před 2 lety

    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?

  • @dernikkl
    @dernikkl Před 2 lety

    Is a python Webserver (Flask) faster than a Apache2 or Nginx? Are you able to include php with a pip libary or so?

  • @Ivan-dt9mc
    @Ivan-dt9mc Před rokem

    This man outputs more programmers than his projects

  • @vanessacrosbyfitzgerald

    Do you have a tut on connecting pyttsx3 script with Flask (html frontend) ?

  • @wolfmaiskolf1380
    @wolfmaiskolf1380 Před 2 lety

    Hello tim, in literally the first step im getting a syntaxerror: invalid syntax for the reason File "", line 1. What is it?

  • @LakeGuy2010
    @LakeGuy2010 Před rokem +2

    4:03 mine does NOT show the same output in the Terminal. How did you get this output?

  • @fawwazyo9169
    @fawwazyo9169 Před rokem +4

    why my website become full blank of white after changing the return to render template("index.html") ???? can someone help me

  • @estas9449
    @estas9449 Před 2 lety

    what python topics should I learn to make this?

  • @FutBoi1
    @FutBoi1 Před rokem +1

    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?

  • @johnathanpieters7400
    @johnathanpieters7400 Před 2 lety

    Almost 1M subs

  • @MACD69
    @MACD69 Před 2 lety

    Can you combine sqlalchemy with blueprints?

  • @Ahrgos
    @Ahrgos Před rokem +1

    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?

  • @mrpooptheiii3444
    @mrpooptheiii3444 Před 5 měsíci

    thank u

  • @lucasperin6585
    @lucasperin6585 Před 2 lety

    bro what is your VS Code theme? i really like that

  • @homeoffice3524
    @homeoffice3524 Před rokem

    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?

  • @mikejadwin1304
    @mikejadwin1304 Před rokem +5

    0.75 playback speed is perfect for this lol. Thank you!

  • @Luc1an_
    @Luc1an_ Před 2 lety

    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.