Make A Python Website As Fast As Possible!

Поділитися
Вставка
  • Опубліковано 14 лип 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 UA-cam 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

КОМЕНТАРІ • 288

  • @saliadel5238
    @saliadel5238 2 роки тому +623

    This man outputs more programmers than many college professors

    • @mike4617
      @mike4617 2 роки тому +18

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

    • @dr.2k223
      @dr.2k223 2 роки тому +3

      لا بربك 😂😂

    • @evanholyfield8042
      @evanholyfield8042 2 роки тому +1

      Yup, it do be like that

    • @Dezdichado1000
      @Dezdichado1000 Рік тому +3

      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 роки тому +247

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

  • @DarrenSemotiuk
    @DarrenSemotiuk 11 місяців тому +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 2 роки тому +54

    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 місяців тому +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.

  • @kitgary
    @kitgary 2 роки тому +22

    This guy has better programming skills than most professors!

  • @filiptalarek5889
    @filiptalarek5889 2 роки тому +6

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

  • @HHK26
    @HHK26 2 роки тому +5

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

  • @dcsquad430
    @dcsquad430 2 роки тому +6

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

  • @tomharner83
    @tomharner83 2 роки тому +1

    This was a better format than I would have expected.

  • @That1Accountant
    @That1Accountant 2 роки тому +67

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

  • @loosabway3400
    @loosabway3400 11 місяців тому +2

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

  • @lennox_wrld
    @lennox_wrld Рік тому +4

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

  • @xeliqa3921
    @xeliqa3921 2 роки тому +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 2 роки тому +66

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

    • @8koi139
      @8koi139 2 роки тому +3

      *Me using PureTube to watch at 3x while typing faster tha lighting*
      Ha~ fool

    • @MotionlessBottle
      @MotionlessBottle 2 роки тому +1

      @@8koi139 bruh

    • @vaishalirama
      @vaishalirama 2 роки тому +1

      😂😂😂😂

    • @ahmusg8054
      @ahmusg8054 2 роки тому

      lmao same

  • @thestickbuster1852
    @thestickbuster1852 6 місяців тому +1

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

  • @blackchristiangeek
    @blackchristiangeek 2 роки тому +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 2 роки тому +2

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

  • @matthewzelt5181
    @matthewzelt5181 4 місяці тому

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

  • @I_Follow_Jesus
    @I_Follow_Jesus 2 роки тому +9

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

  • @ninavanleeuwen1183
    @ninavanleeuwen1183 8 місяців тому

    im so glad i found your channel. thank you tim

  • @mookjais
    @mookjais Рік тому +3

    This was outstanding, thanks!!

  • @nimepeter
    @nimepeter Рік тому

    That was amazing Tim, well done.

  • @nanthakumarjj3369
    @nanthakumarjj3369 2 роки тому

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

  • @trevormckellen5613
    @trevormckellen5613 2 роки тому +1

    This is actually so helpful

  • @GunCraft76
    @GunCraft76 4 місяці тому

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

  • @AaronGayah-dr8lu
    @AaronGayah-dr8lu Місяць тому

    Excellent tutorial, thank you.

  • @georgechannyeinlwin6743
    @georgechannyeinlwin6743 2 роки тому +1

    I've been waiting for this

  • @ivanmosquera7122
    @ivanmosquera7122 6 місяців тому

    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 Рік тому +1

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

  • @taylorcummings473
    @taylorcummings473 4 місяці тому

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

  • @babusivaprakasam9846
    @babusivaprakasam9846 Рік тому

    Brilliant content and speed. Loved it

  • @eatdapoopoo67
    @eatdapoopoo67 2 роки тому

    awesome video Tim, thank you

  • @SeanghortBorn
    @SeanghortBorn Рік тому +3

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

  • @franciscopacio1237
    @franciscopacio1237 2 роки тому

    Amazing vid man! Keep it going!

  • @madnecessity
    @madnecessity Рік тому

    Thanks for making this video
    Really helped me out

  • @DavidWiehls
    @DavidWiehls Рік тому

    Thanks for the explanation!

  • @whampoa8647
    @whampoa8647 5 місяців тому

    great video :) thanks!

  • @gasrat
    @gasrat 2 роки тому

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

  • @isakdahlstrom
    @isakdahlstrom 11 місяців тому

    Thanks for this video!

  • @bad_robot
    @bad_robot Рік тому

    this dude is an absolute beast thank God for this video

  • @wrzq
    @wrzq 6 місяців тому

    Beautiful tutorial, thank you Tim!

  • @amareyutube3094
    @amareyutube3094 2 роки тому

    Thanks!!!!
    its really Helpfull

  • @msec7188
    @msec7188 2 роки тому +96

    I would love to see something like this with fastapi

  • @user-uh1yf2fd1e
    @user-uh1yf2fd1e 6 місяців тому

    Thank you man

  • @11thBacon
    @11thBacon Рік тому

    thank you for this video!

  • @rogermillamilla3913
    @rogermillamilla3913 Рік тому

    thanks Tim very good lesson

  • @cursoderobotica
    @cursoderobotica 2 роки тому

    Amazing!! You rock!

  • @iPhoneTopics
    @iPhoneTopics Рік тому

    Thank you. Really useful and awesome..

  • @haimkichik
    @haimkichik Рік тому

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

  • @JP12313
    @JP12313 2 роки тому

    Great content!

  • @cachaceirosdohawai3070
    @cachaceirosdohawai3070 2 роки тому +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

  • @natureloverJ
    @natureloverJ Рік тому +1

    Awesome!
    Coolness = 10
    Liked it .. 👏 👏

  • @ninjanape
    @ninjanape 2 роки тому

    awesome thank you!

  • @samreenfathima8726
    @samreenfathima8726 2 роки тому

    Thank you so much!

  • @StefanGabrielRoHu
    @StefanGabrielRoHu 7 місяців тому

    Thank you, your demonstrations are very useful for beginners!

  • @bubble249
    @bubble249 2 роки тому

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

  • @skepisLT
    @skepisLT Рік тому

    Thank you very much man

  • @BrlU
    @BrlU Рік тому

    Bro you are genius!!

  • @academiereparation3662
    @academiereparation3662 Рік тому

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

  • @ShowYourSkillS19
    @ShowYourSkillS19 2 роки тому

    Absolute this is good tutorial 👍👍👍

  • @John_765
    @John_765 Рік тому

    Thanks!

  • @qazwsxedcrfvtgb8877
    @qazwsxedcrfvtgb8877 2 роки тому +1

    THANK YOU!!!

  • @Drewbai52
    @Drewbai52 11 місяців тому

    Like the lack of BS, Straight into the breach!

  • @alexanderoransky7601
    @alexanderoransky7601 2 роки тому +1

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

  • @pablopoggio
    @pablopoggio Рік тому

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

  • @onlyforscience8255
    @onlyforscience8255 2 роки тому +2

    Your T-shirt explained everything to us.

  • @christislight
    @christislight 4 місяці тому

    Great video brother! Building an AI Chatbot with flask

  • @FedoraRose
    @FedoraRose 2 роки тому +3

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

  • @user-df1qm7zh5j
    @user-df1qm7zh5j 6 місяців тому

    cool video)

  • @mahmoudhosny8881
    @mahmoudhosny8881 2 роки тому

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

  • @hdkimo
    @hdkimo Рік тому

    I love this

  • @Ivan-dt9mc
    @Ivan-dt9mc Рік тому

    This man outputs more programmers than his projects

  • @mrpooptheIII
    @mrpooptheIII 6 місяців тому

    thank u

  • @johnathanpieters7400
    @johnathanpieters7400 2 роки тому

    Almost 1M subs

  • @mikejadwin1304
    @mikejadwin1304 Рік тому +5

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

  • @hin4241
    @hin4241 2 роки тому

    This guy: make a website in Python as fast as possible
    Also this guy: Adds JavaScript

  • @liriani
    @liriani 2 роки тому

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

  • @will2see
    @will2see 2 роки тому +2

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

    • @wackyator
      @wackyator 2 роки тому +1

      look in the description dummy

  • @erikmartinson5411
    @erikmartinson5411 2 роки тому +1

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

  • @redcraft612
    @redcraft612 9 місяців тому

    14:53 Excellent coolness.

  • @ibletintinfouin980
    @ibletintinfouin980 2 роки тому

    You are the best actor

  • @Sintax_
    @Sintax_ 10 місяців тому

    When you're able to squeeze a month worth of college lectures into a 22 minute video

  • @mavdotj
    @mavdotj 2 роки тому

    i just turned the same age as you when you started coding today

  • @alialavizadeh2775
    @alialavizadeh2775 2 роки тому

    so good

  • @blazinthat7439
    @blazinthat7439 2 роки тому +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

  • @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?

  • @shawnshoptaugh4907
    @shawnshoptaugh4907 9 місяців тому +1

    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

  • @selo2410
    @selo2410 2 роки тому

    Nice

  • @abrarmasumabir3809
    @abrarmasumabir3809 2 роки тому

    plz continue your C++ series

  • @user-mg2jf7wm7w
    @user-mg2jf7wm7w 2 роки тому

    Do advanced Go tutorial for web development.

  • @iteachcyber5713
    @iteachcyber5713 2 роки тому

    Lmao my friend says " just do boom website" im dead

    • @NobFella
      @NobFella 2 роки тому

      Programmers: seeing someone says html is a programming language
      Programmers(real): 🙂🔫

  • @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?

  • @fawwazyo9169
    @fawwazyo9169 Рік тому +4

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

  • @SahraClayton
    @SahraClayton 2 роки тому

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

  • @Bucksauce_
    @Bucksauce_ Рік тому +1

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

  • @MrCigzig
    @MrCigzig 2 роки тому

    Flask is decorator pattern like ExpressJS

  • @RonalRomeroVergel
    @RonalRomeroVergel 10 місяців тому

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

  • @FutBoi1
    @FutBoi1 Рік тому +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?