Flask Tutorial #1 - How to Make Websites with Python

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • Welcome to the first flask tutorial! This series will show you how to create websites with python using the micro framework flask. Flask is designed for quick development of simple web applications and is much easier to learn and use than django. If you are less experienced with python and want to learn how to make websites flask is the right tool! Flask is great for beginners!
    Text-Based Tutorial: techwithtim.ne...
    Playlist: • Flask Tutorial #1 - Ho...
    ◾◾◾◾◾
    💻 Enroll in The Fundamentals of Programming w/ Python
    tech-with-tim.....
    📸 Instagram: / tech_with_tim
    🌎 Website techwithtim.net
    📱 Twitter: / techwithtimm
    ⭐ Discord: / discord
    📝 LinkedIn: / tim-rusci. .
    📂 GitHub: github.com/tec...
    🔊 Podcast: anchor.fm/tech...
    💵 One-Time Donations: www.paypal.com....
    💰 Patreon: / techwithtim
    ◾◾◾◾◾◾
    ⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡
    Tags:
    - Tech With Tim
    - Python Tutorials
    - Flask Python
    - Python Flask Tutorial
    - Flask Tutorial
    - How to create websites with python
    #Python #Flask #WebDevelopment

Komentáře • 502

  • @TechWithTim
    @TechWithTim  Před rokem +12

    Start a high paying tech career making $60k+/year with NO DEBT: coursecareers.com/a/techwithtim

  • @theunsbooysen5063
    @theunsbooysen5063 Před 4 lety +87

    Thanks Tim,this is so nice...Here's what i would like to see from the series:
    adding images,adding rows and columns,drop down menus,let the user add a comment on something and leave a rating.

  • @kimeg7294
    @kimeg7294 Před 4 lety +26

    Thanks for your videos. I've been programming (at work and as hobby) for more than 2 years now. For all this time, I built several mini projects on various areas (ML & DL models, algorithm visualization, asynchronous tasks, server-client network, multiprocessing, game development, etc.) EXCEPT for web development. You break down the concepts really nicely and all the pieces seem to fit well together.

  • @deceptivegamr3438
    @deceptivegamr3438 Před 4 lety +56

    I just wanted to thank you for this information.
    It was actually perfect for what I was looking for!
    A simple starting point that was easily understood and tested.
    I learned a ton about web development when I was younger (started learning at age 12) but only stuck with it for about 4 years and slowly lost interest. (So angry with myself for not sticking it out)
    I have been getting back into web-dev mainly because I really enjoy learning and playing with Python. Such a neat and clean multi-purpose language.

  • @joaovictorteodorobrasil1435

    I have started learning Python these past few months and have a lot to thank Tim for his content.

  • @kimdinh8359
    @kimdinh8359 Před 4 lety +27

    It's exact tutorials I'm looking for. I like the speed of tutorial and your explanation. Thank you Tim.

  • @bringsik100
    @bringsik100 Před 4 lety +176

    The tag is . . .
    Nevermind, we learn python here.

    • @quandoeuforrico
      @quandoeuforrico Před 4 lety +1

      The tag is. . .
      Isn't this tag to make the letter smaller or larger?

    • @theboiyoulove5124
      @theboiyoulove5124 Před 4 lety +7

      @@quandoeuforrico It is to make the text larger

    • @5staryzzz
      @5staryzzz Před 4 lety +4

      @@quandoeuforrico Larger

    • @5staryzzz
      @5staryzzz Před 4 lety +1

      @@theboiyoulove5124 yep

    • @raahimfareed
      @raahimfareed Před 4 lety +1

      @@quandoeuforrico Basically h1 is the largest Heading tag.

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

    Wow Flask is surprisingly easy to get a simple page up and running. Thanks Tim! Always appreciate your Python videos.

  • @ankan1622
    @ankan1622 Před 3 lety +1

    Sir, I don't know why CZcams isn't showing this playlist in search results but this is the bestestest tutorial I find out in the whole internet. Thank you, thank you for making this course.. ❤️

  • @mehmetdulkadiroglu2693
    @mehmetdulkadiroglu2693 Před 4 lety +44

    Omg I was wishing that you would do a flask tutorial. Thanks for this

    • @mariok5893
      @mariok5893 Před 4 lety

      When you open terminal mine doesn't say pythonyoutubeflasktutorial

    • @mariok5893
      @mariok5893 Před 4 lety

      Plus when he says on the end run that I don't understand what in supposed to do

  • @crnofficial
    @crnofficial Před 4 lety +578

    please make a full flask tutorial that is brain friendly.

  • @sumitak1
    @sumitak1 Před 4 lety +15

    Thanks Tim for the quick and clear introduction! Got me started on Flask!

  • @maxdenoudsten2596
    @maxdenoudsten2596 Před 4 lety +4

    Its like you’re reading my mind! Last week I was thinking of doing something with flask, and boom, a tutorial series from one of my favourite youtubers!

    • @TechWithTim
      @TechWithTim  Před 4 lety +6

      Maybe I am...

    • @maxdenoudsten2596
      @maxdenoudsten2596 Před 4 lety +1

      Tech With Tim Btw, would a simple login system fit in the series? Or would it get too complicated with saving passwords etc?

    • @jojomovement8119
      @jojomovement8119 Před 3 lety

      @@maxdenoudsten2596 hello bro for making the login system you need a cloud database which secure for storing complex details

  • @613gin
    @613gin Před 4 lety +7

    Thank you for the videos, Tim. You are talented teacher and programmer. I hope you keep CZcams business as your primary focus when you graduate.
    Best

  • @justash123
    @justash123 Před 2 lety

    After watching your tutorial, i fell in love with 3 things: You, Flask and Learning!!
    Thank you so so much!

  • @migueldomingos4570
    @migueldomingos4570 Před 4 lety +1

    I started with Corey Shaffer tut, but I moved into this, because when I am learning a new framework I dont want to build a project just learn how it works!

    • @yazeedtawalbeh1878
      @yazeedtawalbeh1878 Před 4 lety +1

      Same here. Corey is a great teacher but his tutorial didn't seem appealing to me

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

    I found your channel yesterday and I have already learnt months worth of stuff. Subscribed, joined your discord, participated in your weekly challenge, set up my desk thanks to your video, everything!

  • @rayganmudberry375
    @rayganmudberry375 Před 4 lety +8

    Tim you're awesome my brother. after this series i request you make project based series on OOP Django. that way we can play with object oriented Programming. thank you so much and god bless you.

  • @beefykenny
    @beefykenny Před 4 lety +18

    Are you gonna make a Flask series too? I look forward to watching it. You really explain well

  • @alphainfinitum3445
    @alphainfinitum3445 Před rokem

    Tim you are such a wonderful teacher and i hope i will not be asking too much by begging that you please teach us about virtual environments in a separate video. Many of us have tried to learn it from other videos, but they are not as relatable as you. You recommended that we build our flask on a virtual environment but we don't know how to do it.

    • @TechWithTim
      @TechWithTim  Před rokem

      I have a video on my Python dev environment where I discuss these!!

    • @alphainfinitum3445
      @alphainfinitum3445 Před rokem

      @@TechWithTim thank you. I will go look for it now.

  • @EverydayNewExperiences-lb9ui

    bit struggling running it in command prompt, but finally i run my webpage. thanks to you time

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

    Great job Tim! I was able to follow what you did and had no issues!

  • @sakifsami3063
    @sakifsami3063 Před 4 lety

    You can also practice coding by following the video and just type the code as it is.. I usually use this technique to improve my coding speed and it helps me learn faster..

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

    This video deserves to go viral, it's that good

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

    This is really helpful. Thank you.
    It is a little confusing that you use home as the example for the second page route because there is already a function called home for the root route.
    I figured out what was going on, but it would have been clearer if a different route name was used.

  • @brianevans4
    @brianevans4 Před 4 lety +24

    Would love to see how to get input from a HTML form and use it in a python program. That would be pretty cool!

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

      Hey bro! I'm only a few months into python, it looks like you were a newbie as well when you asked this question. How's your coding journey two years later?

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

      Hey bro! I'm only a few months into python, it looks like you were a newbie as well when you asked this question. How's your coding journey two years later?@@jimmyfl0

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

    Splendid! Perfect. Thanks

  • @nosickl
    @nosickl Před 2 lety

    Thank you very much for helping at a subject when the teacher and Google have failed to do it for me.

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

    Nice tutorial .. step by step clear explanation.Thanks for sharing the knowledge

  • @user-te8rb7ki8z
    @user-te8rb7ki8z Před 7 měsíci

    You may want to start with the concept of a virtual environment. Coming from javascript land this is very new

  • @future9715
    @future9715 Před 3 lety +1

    Great video, Tim! I've been holding myself back for years, but thanks to u I managed to see how easy it had always been!

    • @Krato65
      @Krato65 Před 3 lety

      can you tell me how to download flask?

    • @future9715
      @future9715 Před 3 lety +1

      @@Krato65 if u r using vscode just write (in the terminal) the following: pip install flask

  • @SkyFly19853
    @SkyFly19853 Před 4 lety

    Truly wonderful since I am interested in using Python for Networking...

  • @yeetboi1364
    @yeetboi1364 Před 3 lety

    this is a blessing
    tim is my messiah

  • @mshimanshu1000
    @mshimanshu1000 Před 3 lety +5

    it is not working for me :( ~~ **Not Found
    The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.**

  • @daytodatainc
    @daytodatainc Před 4 lety

    Great tutorial to get you started. Most videos I've watched jump right into GIT or Heroku deployment right from the door which makes things even more confusing. Good job!

  • @dexterflodstrom9975
    @dexterflodstrom9975 Před 4 lety +1

    If anyone gets a 404 not found with the default port 5000, try doing app.run(host="0.0.0.0", port="81").
    fixed it for me

  • @AlienAgencyorg
    @AlienAgencyorg Před 2 lety

    👽 Nice StarTrek Chair !!

  • @houda9434
    @houda9434 Před 4 lety +6

    thank you so much tim for the tutorial It was a good start for web development

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

    All this just to print hello. You can do this with very basic html
    Hello

  • @eternalcat
    @eternalcat Před 4 lety +6

    Hey Tim, what's the brand of your chair? Is that good? Any recommendation?

    • @Bbygrllu
      @Bbygrllu Před 4 lety

      It’s a gaming chair, check amazon for gaming chairs

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

    Just came from django. Damn flask seems so straightforward. I’m not going back to learning django

  • @kkrolley
    @kkrolley Před 3 lety

    IN CASE YOU GET:
    'The folder you are executing pip from can no longer be found.'
    FROM INSIDE THE PYCHARM IDE
    use the importation syntax:
    from flask import Flask
    Hover your mouse over the squiggly line under the lowercased _flask_ and click install package.

  • @notonprem
    @notonprem Před 3 lety

    I HARDLY COMMENT. THIS IS A GOOD TUTORIAL. GREAT FOR REFRESHING IN MY OWN CASE

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

    Crystal clear that's exactly what I like in these tutorials. Thanks Tim

  • @itzchrysler7129
    @itzchrysler7129 Před 4 lety +4

    If you have a problem at the "python 'tutorial 1.py' " try python -m flask run

    • @ghostly2395
      @ghostly2395 Před 4 lety

      It says,
      "Error: Couuld not import "FILENAME".

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

    Really awesome stuff Tim, thank you for sharing.

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

    Loved this tutorial

  • @user-bc2ec6dg4e
    @user-bc2ec6dg4e Před 4 lety +1

    Omg I was waiting for Django and Flask tutorials thanks Man

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

    Thank you sir, I was waiting for this series a lot. Please do a complete advanced Flask courses. We'll be appreciate that.
    Creating a shopping, blogging, AI web app is what we're looking for...🏋️‍♂️🏋️‍♂️

  • @LijpeTracks
    @LijpeTracks Před 3 lety +4

    when i copy and paste to look at the website through a browser i get this
    "The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again."

  • @QuickFixHicks914
    @QuickFixHicks914 Před 4 lety

    Thanks Tim you made this very straight forward

  • @Crux161
    @Crux161 Před 3 lety +4

    surprised there aren't a ton of comments says "Get in the flask!" rofl

  • @avikhandakar
    @avikhandakar Před 4 lety

    You are awesome :) Please continue the Flask series.

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

    wow. a tutorial that actually makes sense. bless you sir

  • @frewynang182
    @frewynang182 Před 3 lety

    this is pretty help for newbie like me, thanks a lot for great work.

    • @howpe8100
      @howpe8100 Před 3 lety

      what software did he used?

  • @drexflea52
    @drexflea52 Před 4 lety +1

    Bro, u r a genius...
    I'm completely blown by your knowledge...
    What is ur age?

  • @j.r.s8737
    @j.r.s8737 Před 4 lety

    Watching this! Looking to the rest of the series!

  • @seuconteudointeligente9235

    Hi Tim! Can you make a video with {SQLITE database + Python + Flask + VSCode + HTML + CSS + JAVA} for noobies?
    I am starting coding now, you speak too fast(because your are very good) for me to understand.
    I would appreciate if you do it.

  • @keremardcl6759
    @keremardcl6759 Před 3 lety +1

    By far the best introduction and explanation for a beginner... Well done mate!

  • @cgme7076
    @cgme7076 Před 3 lety +1

    Note: If you have worked with Spring or Spark for Java then Flask is an easy transition.

  • @mastercode7851
    @mastercode7851 Před 4 lety

    please dont stop, keep make about flask big sub to you sir

  • @shreyassadavarte4051
    @shreyassadavarte4051 Před 4 lety +1

    Make a flask series! And also after that make a django series thank you😀

    • @deadfool6105
      @deadfool6105 Před 4 lety +1

      he already has a Django series.. Go check it..

  • @avvn9331
    @avvn9331 Před 4 lety

    Thanks for this flask series sir., very kind of you to make such useful tutorials for us..

  • @leandrocouretot4101
    @leandrocouretot4101 Před 2 lety

    Exactly what i needed. Thanks man!

  • @pallavigoel5810
    @pallavigoel5810 Před 3 lety

    Thanks Tim for so clear and crisp explanation for starting with Flask App.

  • @JohnDoe-rp8xn
    @JohnDoe-rp8xn Před 7 měsíci +1

    you forgot to put a corner thing at 1:40 for pip.

  • @user-tg4hs1sd9r
    @user-tg4hs1sd9r Před 4 měsíci +1

    what is the extension that you use which colors the whitespaces/tabspace in vscode?

  • @soumitramandal
    @soumitramandal Před 4 lety +1

    Thank you so much. Really helpful!

  • @bombaybenji9013
    @bombaybenji9013 Před 2 lety

    nice I am so pumped to get into it

  • @juliengosset5205
    @juliengosset5205 Před 2 lety

    Thank you for this tutorial, it helps me a lot!

  • @theweirdclub3945
    @theweirdclub3945 Před rokem +1

    Thanks bro, your video really helped. But one question, are u in the habit of using incognito mode🌝💀

  • @godwinsojan6205
    @godwinsojan6205 Před 2 lety

    thanks tim u help me out a lot anyway keep it up bro

  • @b16ftw
    @b16ftw Před 2 lety

    Great video Tim thank you!

  • @yungmaz13
    @yungmaz13 Před 3 lety +1

    Fantastic! This is exactly what I needed, very clear video, keep up the good work!

  • @nikoskaragiannis6353
    @nikoskaragiannis6353 Před 4 lety

    very good tutorials, i understand them perfectly, subscribed!

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

    Thank you ... great tutorial !!

  • @RoamingAdhocrat
    @RoamingAdhocrat Před 3 lety

    Brilliantly paced. 500k subs well-earned :D

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

    what app did you use to code?

  • @jeffreygordon7194
    @jeffreygordon7194 Před 4 lety

    This was really clear and helpful. Thank you.

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

    can you please make a full flask tutorial and also deploying the app in heroku!!!!

  • @avivhoitash9582
    @avivhoitash9582 Před 4 lety +1

    Hey Tim I know I am a little late but I was wondering if you knew how to run a python script on say a button click in a html website. I was looking all over the internet and couldn't find a way. If Tim or anyone else knows can you please help me! Thank you. By the way thank you for the series it was really Helpful

  • @aniceguy2577
    @aniceguy2577 Před 4 lety +1

    Why didn't u use oop instead? Isn't it more organized and efficient?

  • @yogeshpandey9549
    @yogeshpandey9549 Před 4 lety +1

    I just wanted to know what are the prerequisites for getting started with flask?

  • @deecentguyy
    @deecentguyy Před 3 lety

    Great it's easy😳

  • @blazi_0
    @blazi_0 Před 3 lety

    it took me 10 videos of django tutorial to do just what in this video , django is extremely hard !

  • @BeansGalaxy
    @BeansGalaxy Před 4 lety

    If you are having an error flask is not installed I had to run it through a virtualenv and install flask there look up creating a virtual environment for help

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

    Coming from Django, Flask seems a lot easier to use

  • @mrigankadas5435
    @mrigankadas5435 Před 4 lety

    Awesome explanation, really liked it

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

    What plugins do you use in Sublime to program in Python? I like using Sublime more like IDE.

    • @colourfultoreador8467
      @colourfultoreador8467 Před 3 lety

      You don't need plugins for Sublime you just type code into it. Then you save the file as .py

  • @asadrking
    @asadrking Před 3 lety

    Great video Tim!

  • @teacherinthailan6441
    @teacherinthailan6441 Před 3 lety

    Cool. Thanks.

  • @ernestogomez4466
    @ernestogomez4466 Před 3 lety

    Fantastic!!!! Thank you!

  • @madeleinewright849
    @madeleinewright849 Před 4 lety

    Well explained. Thanks.

  • @Portaling
    @Portaling Před 4 lety

    yeah these tutorials are do what I do, more then a learning experience

  • @akiel000xy
    @akiel000xy Před 7 měsíci +1

    IDK why, since i start try this i has to change a lot of stuff, cause l just bump on few errors, but well, now l am on this:
    - l using VS code, due to since ever have coding there
    - l oppened my file with the py extension, and copy the code
    - tried launch on my windowns powershell and like "sorry, module ABC is an unvalid syntax"
    - try change and change that, however nothing
    Still trying by searchs and random ideas...
    Could someones help?

  • @nadianaeem5036
    @nadianaeem5036 Před 4 lety +1

    Can u add a lesson on fetching and parsing json data from an api with flask

  • @samsmusichub
    @samsmusichub Před 4 lety

    Do all the pages of the website need to be in the same script? For a site that will be expanding on page content all the time, I'd really like to have each page run in a separate script and if I can call the outputs on the main script.

  • @yigita3190
    @yigita3190 Před 4 lety

    I think that instead of returning redirect(url_for("home")) you can just return redirect("/")

  • @programmingtuts4785
    @programmingtuts4785 Před 4 lety

    Great tim doing a great stuff here!!!

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

    Though everything was word for word, and I have python3.7 I couldn't get 127.0.0.1:5000/home to work, kept saying 404. ( using atom)