Python Flask Tutorial: Full-Featured Web App Part 2 - Templates

Поделиться
HTML-код
  • Опубликовано: 16 июн 2024
  • In this Python Flask Tutorial, we will be learning how to use templates. Templates allow us to reuse sections of code over multiple routes and are great for serving up dynamic HTML pages. Let's get started...
    The code for this series can be found at:
    github.com/CoreyMSchafer/code...
    The code snippets used in this video can be found here:
    github.com/CoreyMSchafer/code...
    ✅ Support My Channel Through Patreon:
    / coreyms
    ✅ Become a Channel Member:
    / @coreyms
    ✅ One-Time Contribution Through PayPal:
    goo.gl/649HFY
    ✅ Cryptocurrency Donations:
    Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
    Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
    Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot
    ✅ Corey's Public Amazon Wishlist
    a.co/inIyro1
    ✅ Equipment I Use and Books I Recommend:
    www.amazon.com/shop/coreyschafer
    ▶️ You Can Find Me On:
    My Website - coreyms.com/
    My Second Channel - / coreymschafer
    Facebook - / coreymschafer
    Twitter - / coreymschafer
    Instagram - / coreymschafer
    #Python #Flask

Комментарии • 872

  • @coreyms
    @coreyms  6 лет назад +560

    I call the percent signs "parentheses" multiple times throughout this video. Not sure what I was thinkin. Just ignore that.

    • @omar_5352
      @omar_5352 6 лет назад +1

      @Corey Schafer In my early days working with the console (MS-DOS 6.2, not Linux, sorry) I used to call the colon a TAB , so it's A-tab and C-tab when switching between drives. It stayed with me for quite long time!! Thanks for all your amazing videos

    • @prabeshgautam3774
      @prabeshgautam3774 5 лет назад +1

      For a moment I was like..... He called multiple times.. Maybe he dont know the difference between these two..
      haha

    • @01Ventures
      @01Ventures 5 лет назад +3

      How do I create a shortcut where I can just type lets say %% and it will automatically put {%%}... cause writing that out every single time is so tedious !?

    • @francist3979
      @francist3979 5 лет назад +1

      Great work! Subscribed!

    • @quasa0
      @quasa0 5 лет назад

      Allan Bart did you solve your issue?

  • @MrMiguelcdpmarques
    @MrMiguelcdpmarques 5 лет назад +1396

    The quality of these tutorials is very high. Higher than most paid content in other platforms. A sincere thank you from a Python beginner

    • @KrazyMO
      @KrazyMO 5 лет назад +19

      I was going to say the same thing. Thank you for posting your tutorials.

    • @rewerb
      @rewerb 5 лет назад +6

      Agreed.

    • @zennn9690
      @zennn9690 5 лет назад +1

      It's getting pip is not recognized as a internal r external cmnd... Wt to do

    • @younesboukroun3060
      @younesboukroun3060 5 лет назад

      @@zennn9690 which system do u use? windos or mac or linux? well you have to install the pip and path when u install python if you are in windows

    • @zennn9690
      @zennn9690 5 лет назад

      @@younesboukroun3060.Tq fr ur rply... Finally I set the path and made it work

  • @carolflyjs
    @carolflyjs 6 лет назад +125

    Your tutorials are probably the best tutorial I've ever taken online! Most other people's tutorials are either too slow or not clearly explaining key concepts. You nailed it! Thank you!

  • @jl_woodworks
    @jl_woodworks 6 лет назад +47

    Corey, whenever I learn something new that actually has a practical value I feel an undescriptable enjoyment.
    With that said, that is what I feel when I watch a video of yours and, I have to say, I've never liked web development that much
    but now I'm feeling I actually do like it! So, in short, you're a great teacher and I encourage you to keep teaching! Thank you!

  • @Haitham00n
    @Haitham00n 5 лет назад +24

    I think I never commented to a video before in my life.
    I watched the first 3 videos of this playlist and I really can't thank you enough for your effort and time and the way you illustrate it to us.
    Thanks a lot :)

  • @samuelyap1681
    @samuelyap1681 5 лет назад +1

    Thanks for putting out a series on Flask. Read the official documentation for Flask and struggled, finding your videos made it smooth as budda.

  • @jashbangdiwala4575
    @jashbangdiwala4575 5 лет назад +14

    This is highly detailed and really well thought of. There’s a great structure and a perfect flow for a beginner to follow !

  • @TheMetalhead1311
    @TheMetalhead1311 5 лет назад +5

    This is going to be such a huge help for school. Its one of the few modern tuts out there and one of the best I've ever seen. A huge thank you @Corey Schafer

  • @christopherlawson2797
    @christopherlawson2797 5 лет назад +7

    I rarely comment on videos, but this is exceptionally well done. Thank you for the time and effort you spent putting this together.

  • @abhijithsnair3157
    @abhijithsnair3157 5 лет назад +5

    Dear Corey,
    I don't know how to thank you for all these videos. The quality of your teaching is exceptional. The pace, accent, standard and content is up to the mark. Being a newbie in this area, your course had helped me learn a lot. Thanks a ton!!!

  • @Nalurilolz
    @Nalurilolz 4 года назад +1

    Thank you man, when I watch your videos it's like you're talking directly to my brain and answering just the questions I'm asking !

  • @dylee8998
    @dylee8998 5 лет назад +25

    This man is legend, Corey, you're arguably the best Python Teacher online no cap
    Keep It Up!, 300k Subscribers inna bit

  • @tubalix
    @tubalix 4 года назад +6

    I keep on watching more and more videos on python, also on Udemy. Then I come back to Corey and genuinly conclude time after time: Corey is the best!! I feel grateful for all of us out there you are there around making those videos in such a fantastic way. Thanks, you definitely are the man!!!

  • @Andi199656
    @Andi199656 4 года назад +6

    This is literally the best tutorial I have ever seen in my life. Thank you so much for creating such good content! Greetings from Germany :)

  • @ibrahimal-mahfooz8737
    @ibrahimal-mahfooz8737 5 лет назад +1

    You're just amazing. This can't be simpler and easier than the way you explain it.

  • @codebreakthrough
    @codebreakthrough 3 года назад +48

    Wow Corey, great job with these videos. Seems so simple, but that html snippet to generate a basic HTML structure was eye opening. Up until this point I've been looking up HTML boilerplate code and copying and pasting. Appreciate it much.

    • @imdadood5705
      @imdadood5705 3 года назад +6

      Legend commenting on another legend’s video. Thank you both of you!

    • @RyantheCanuckpirate
      @RyantheCanuckpirate Год назад

      Crazy world. I was just watching your database design video literally 45 minutes ago

  • @hamolicious2387
    @hamolicious2387 3 года назад

    These tutorials are so good, no bullshit, just content and pure learning! Thanks a ton

  • @WolverineAndSloth
    @WolverineAndSloth 5 лет назад +4

    I tried out some Django tutorials after learning the basics of python and i felt so completely and utterly lost. Then i stumbled on your videos and Flask, and everything is making sense again. Thank you so much for your work, Corey.

  • @MouradMourad1000
    @MouradMourad1000 5 лет назад +4

    very good quality videos, can't wait to watch them all. At tje beginning i was afraid because you speak a bit quickly but what a enjoyment to watch this video and learn with you. keep it up man and thanks a lot. definitely I will watch again and more 👍😊

  • @bartagas2
    @bartagas2 5 лет назад +1

    Another great tutorial. Good stuff Corey. Appreciate the detail of explaining every line and going into the page source code.

  • @Endlessvoidsutidos
    @Endlessvoidsutidos 5 лет назад +2

    one of the best and most comprehensive tutorials on flask bootstrap and css integration i have ever seen well done sir

  • @christorok1906
    @christorok1906 5 лет назад +2

    This tutorial is even more simple than the one of Flask's site. Very good! I'm using this for a software engineering group project in my database course. You're a very good teacher. I am just getting into web development frameworks. Flask is my very first. I tried following the Flask tutorial. It really takes some time and energy to mull over when you've been programming in a sandbox at a university and not having to weave different technologies together. I think I'm starting to understand. Flask uses Blueprinting in their tutorial which is a bit new to me.

  • @mohammadghonchesefidi9238
    @mohammadghonchesefidi9238 5 лет назад +3

    Best and the most complete Flask tutorial on the web. Thanks for sharing this for free.

  • @brtvndnbrnd
    @brtvndnbrnd Год назад +6

    Hi Corey. It's amazing how well we can follow these instructions, typing them in as you do. It's also well explained, even for those (read: me) that don't have a lot of experience in Python nor html. And most of all: so far everything is working. Most of the RUclips tutorial video's lead to some coding that doesn't do what it's supposed to do. But not with your two video's so far😀. They actually work. Great job. Thank you very much. There is no other option than subscribing to your channel, what I did of course.

  • @varunteja6544
    @varunteja6544 Год назад +1

    I am really fortunate to stumble upon your channel. The course is going on very smoothly and the explanations are very clear and upto the point!!
    I have come here after having attended your Python courses, to learn web development using Python.
    My heartful thanks to you Corey :) !! You are a great teacher!!

  • @dannyvriens4903
    @dannyvriens4903 5 лет назад +2

    I code a lot of years in different styles and languages but I can't explain this as clear as you did here.
    Well done and hold this teaching skills.

  • @lolkgraham1727
    @lolkgraham1727 4 года назад

    Here, mister @CoreySchafer! A sincere thank you, from the community of python beginners. You have done a very good thing. There is NO better paid or free content on the entire world wide web that can outstand The quality and easy understanding of Flask in your series!!! THANK YOU SIR!

  • @sudhanshu20094u
    @sudhanshu20094u 5 лет назад +2

    Great thing about your tutorial - The way you explained how posts are being passed to home.html. I mean you explain each and every bit. Its really great.

  • @jharris4854
    @jharris4854 4 года назад +148

    Your free tutorials are BY FAR worth more than the overpriced paid courses on udemy. Ive been educating myself in Information technology in almost every genre for the last decade, and HANDS DOWN you have the best content among any Ive watched. Only Khan academy videos come even close to your teaching quality. For so long I was disappointed Khan didnt have more computer science tutorials....and then I discovered you! lol KEEP IT UP MAN - I became a member just to support you bc Im so impressed with your work.

    • @dawnS33ker
      @dawnS33ker 9 месяцев назад +1

      I completely agree..

  • @chaudharyu.8453
    @chaudharyu.8453 3 года назад

    Probably one of the best courses to start with flask ! Thank you very much @Corey Schafer for providing such a great tutotial:)

  • @mikerihm
    @mikerihm 5 лет назад +2

    You are a fantastic teacher. This is so easy to follow and very enjoyable - great job man!

  • @markslowe
    @markslowe 5 лет назад +3

    These tutorials are PERFECT. Well done and thank you!

  • @PotatoMan1491
    @PotatoMan1491 4 года назад

    Part 2 only and you have been a tremendous educational help, I really enjoy these.

  • @simplepycodes
    @simplepycodes 5 лет назад +1

    Man, simply you're the best and these are the best flask tutorials i have ever seen. but a lot to take, i think we need to code a long the video couple of times. Thanks a lot, super awesome.

  • @rpavanshetty
    @rpavanshetty 6 лет назад +1

    Going great so far. Love your approach. Thank you.
    Next to the 3rd episode.

  • @InfameKato
    @InfameKato 3 месяца назад

    I'm currently working on my flask App, and was looking for a clear tutorial on how this is properly done, so not to start doing it butchering key concepts and having to re-do many things. So far this has been the best flask tutorial I could find. You really dig deep into the bone of it.
    Thank you so much from Colombia!

  • @topgunm
    @topgunm 4 года назад +1

    Watching all the ads to support this awesome teacher - the ads are trying to send me to other learning sites - but we got the best teacher here already! Thanks once again Corey.

    • @coreyms
      @coreyms  4 года назад +1

      Thanks for the kind words!

  • @Rafiki041087
    @Rafiki041087 5 лет назад +3

    Thanks Corey, really appreciate the effort you did in making this tutorial. Great help to get familiar with web development.

  • @545amit
    @545amit 6 лет назад +4

    Thank you Corey!! Keep creating awesome videos on flask.

  • @anandsrikumar007
    @anandsrikumar007 4 года назад +3

    Your videos are better than many paid courses from Udemy!
    You are explaining so clearly
    No unnecessary theory, no dragging the video long. Just getting to the point!

  • @nghiepcrypto7034
    @nghiepcrypto7034 4 года назад +11

    when I think about Python tutorials, I think about you. It just pops up in my mind immediately, very natural.

  • @RameenFallschirmjager
    @RameenFallschirmjager 3 года назад

    Your voice is so soothing that I can build a project while listening and learning from you when I'm in a sinking ship!

  • @CharlesDibsdale
    @CharlesDibsdale 6 лет назад +2

    Wonderful work Corey, well worth waiting for

  • @annguyenviet9028
    @annguyenviet9028 5 лет назад +4

    this lesson is extremely valuable for a newbee like me. Thanks for sharing a great series tutorials.

  • @homayoonkhadivi5320
    @homayoonkhadivi5320 3 года назад +1

    I'm so thankful I found you on RUclips😊. I am fascinated for the way you are teaching. Keep going, you are awesome👍

  • @RemyDelaCruz
    @RemyDelaCruz 3 года назад

    The amount of details in these videos are unbelievable. He never assumes you know every step, no implied knowledge. I wish I could hug you for the amount of effort you put on your videos. Maybe one day, instead I’ll find a way to contribute by buying anything you sell. Thanks again.

  • @christinagorbenko6811
    @christinagorbenko6811 Год назад

    Such high quality. Highly recommend these tutorials for people doing flask

  • @TheMeticulousMoo
    @TheMeticulousMoo 3 года назад

    Honestly Corey, people like you are the reason why the internet is so great. Excellent tutorials man, keep it up!

  • @rahulsailwal4025
    @rahulsailwal4025 4 года назад +1

    i have started watching this flask tutorial and impressed so much that i have subscribed.
    Thank you so much for the wonderful video.

  • @akashrawat2506
    @akashrawat2506 4 года назад +2

    I wanted to learn flask and started so many time and end up not completing it. The main reason was I didn't find any content with this level of explanation and focus to every detail. Your video series is helping me a lot.
    Love you 3000 man 🙌💥

  • @mohamedharoon9136
    @mohamedharoon9136 5 лет назад +2

    Sir, you are the best lecturer around. THANKS!!!

  • @thomasfeldman3613
    @thomasfeldman3613 4 года назад +2

    This is so helpful I almost can't believe it! Thank you so much Corey!!!

  • @saritagautam3483
    @saritagautam3483 6 лет назад +2

    i was waiting for this for so long. Thanks for creating such awesome tutorials.

  • @TPoTTS23
    @TPoTTS23 Год назад

    Thank you Mr. Schafer for creating and sharing. This is an absolute blessing and I'm learning alot.

  • @lashagavashelashvili4661
    @lashagavashelashvili4661 Год назад +1

    This is very high quality tutorials. I recommended it my students. thank you Corey

  • @ArchAid1
    @ArchAid1 6 лет назад +2

    Hey Corey :D I really loved these tutorials! (at least as far as I've gotten) - This is great stuff. Many many thanks

  • @mailrafat
    @mailrafat 4 года назад +4

    Corey is the Master of all "Paid So-called Gurus (they should pay him to learn how to teach rich contents without asking for money)" out there, the way he teaches gets hard-coded in your memory while you'll be having perfect to the point practical knowledge for that subject matter, Hats off sir!

  • @dominicdit
    @dominicdit 5 лет назад +1

    Coming from first learning HTML and CSS as a child, then picking up Python recently, and now amalgamating them in this way feels amazing

  • @mahfuzhasan7588
    @mahfuzhasan7588 4 года назад +2

    I have been your fan by watching your teaching style and contents, amazing.

  • @yu_ja.mp4
    @yu_ja.mp4 5 лет назад +2

    Best flask lecturer ever! :)
    Thank you for your great resources.

  • @alainhachem7168
    @alainhachem7168 5 лет назад +2

    As I follow your step and create the blog with you, I am learning on a next level. I have taken a python class before and left it unable to code at all, thanks to your videos it is actually all making sense. Thank you so much.

    • @coreyms
      @coreyms  5 лет назад

      That's great to hear! Thanks for the comment.

  • @moeinmhzg7827
    @moeinmhzg7827 3 года назад

    It was such a pain an scary thing for me to search and learn these things of flask and thanks to your video it was such a easy and good way for me to learn all these things.
    Not just this(Flask), all of your tutorials have very high quality.
    Thank you so much sir.

  • @cometolearn8598
    @cometolearn8598 Год назад

    Damn I cannot believe this is video was posted 5 Years ago it is better than 90% of the videos today. Great Work Man.

  • @aryansethi5508
    @aryansethi5508 5 лет назад

    Literally amazing tutorials. Just loved them so much. I tried about 5 others , but this one is

  • @mr.RAND5584
    @mr.RAND5584 4 года назад +1

    I am not bored this covid quarantine. Thank you sir. So clear explanation.

  • @AnVinhNguyen
    @AnVinhNguyen 4 года назад +1

    Your RUclips Channel brings so much good to the world. Thank you for making the contents available for us who want to learn

  • @rachitmehta7738
    @rachitmehta7738 3 года назад

    awesome tutorial !
    It not only helps learn easily, but your style helps to remember it as well.
    thanks!

  • @KunaalNaik
    @KunaalNaik 4 года назад +2

    Clear explanation and good pace. Thank you for this tutorial!

  • @sachavanweeren9578
    @sachavanweeren9578 2 года назад +1

    As always ... great tutorial... step by step .... creating understaning. Thanks a lot

  • @kartikxramesh
    @kartikxramesh 4 года назад +3

    Only 8 minutes in, and I'm just so amazed by the quality of this video. I'm a C++ programmer, and I never thought I'd enjoy Python this much. Thanks a ton Corey!
    P.S. I'll definitely become a patron once I get my first paycheck :)

  • @thecodingsim6003
    @thecodingsim6003 Год назад

    Thank you so much for summarizing something so complex for me to understand in under an hour ❤ you saved me

  • @junyuan399
    @junyuan399 4 года назад +24

    Smh i'm paying school fees to get taught by teachers that can't teach well. However, Corey's tutorial videos are so much easier to understand and it's free!
    Thank you for being my actual programming teacher!

  • @nakhla3
    @nakhla3 4 года назад +1

    very informative video and in the same time like playing with puzzles and a real product at end, can't thank you enough

  • @dawnS33ker
    @dawnS33ker 9 месяцев назад

    Thanks to your Flask series, I'm on my way to building what I have always wanted to. Thank you for this series..👍👍👍

  • @rickyoyaro1433
    @rickyoyaro1433 4 года назад

    You are absolutely the best tech instructor on youtube!

  • @OthmanAlikhan
    @OthmanAlikhan 5 лет назад +5

    CTRL+SHIFT+R to bypass cache, thanks for the shortcut, really useful to know!

  • @lightninginmyhands4878
    @lightninginmyhands4878 5 лет назад +1

    Legendary tutorial, once again. Concise!

  • @kakoozarichard5769
    @kakoozarichard5769 4 года назад +1

    These are one of the best tutorials ever...Thank you very much papa!!

  • @yltfy
    @yltfy 5 лет назад +2

    Excellent video! Much better than those paid video tutorials on some learning websites...

  • @TheMetalhead1311
    @TheMetalhead1311 5 лет назад +3

    4/20 I see you Corey haha. Keep up the great work man. Already on to the second video!

  • @rahmahalane2455
    @rahmahalane2455 5 лет назад +1

    Amazing tutorials on Flask app! Glad I found you!

  • @rahulhuilgol5304
    @rahulhuilgol5304 3 года назад

    Such good instruction! I'm teeming with confidence. This is my first Python framework.

  • @akashjain35
    @akashjain35 5 лет назад +2

    Better teaching skills than any professional out there !!!

  • @GaurankGoyal
    @GaurankGoyal 5 лет назад +4

    Awesome!! Really one of the best tutorial, thanks for such a high quality tutorial!!

  • @contactvooxel7864
    @contactvooxel7864 6 лет назад +5

    Best Flask intro Thank you!

  • @fitonkastrati6758
    @fitonkastrati6758 5 лет назад +2

    Thank you for this high quality of tutorials!

  • @sribastavrajguru304
    @sribastavrajguru304 2 года назад +1

    Thanks Corey for the wonderufl tutorial, I liked every single video that I have watched in ur channel. Thanks a lot, keep posting awesome content like this

  • @AaronCoffey1545
    @AaronCoffey1545 9 месяцев назад

    This tutorial is absolutely amazing. If you are running into the issue where your CSS styling file is not being imported (an unstyled website), make sure the folder 'static' that contains the main.css file is NOT a subfolder in templates. It should be a direct subfolder of FLASK_BLOG. Hope I can save someone else the time I spent banging my head against a wall wondering why it wasn't importing any CSS stylings.

  • @barbarossa11
    @barbarossa11 3 года назад

    Awesome job, I feel really smart following your tutorials. Thanks man!

  • @upton0good793
    @upton0good793 3 года назад

    Thank you so much for uploading such a tutorial, it helped greatly in my Internship for web development.

  • @christinemaynard9025
    @christinemaynard9025 3 года назад

    Oh man I'm so grateful for this series

  • @rockytironi4972
    @rockytironi4972 5 лет назад +1

    This is a great series! very informative and everything is explained very well.

  • @mmacasual-
    @mmacasual- 5 лет назад +5

    Best content available on the Internet !!

  • @DrGlutton1
    @DrGlutton1 4 года назад

    Im watching this after paid Flask lecture and finally Im beginning to understand something... You are the savior

  • @lumitechMY
    @lumitechMY 2 года назад +1

    watching back at 2021 still thinks its the best tutorials ever

  • @belalsalem4261
    @belalsalem4261 4 года назад +2

    Thanks... appreciate it.. quick, clear and straight to the point

  • @vyashas4483
    @vyashas4483 5 лет назад +1

    bro there videos are the best . they really are of high quality . i also loved the way you explained the things.....thankyou it was very helpful

  • @LukeAvedon
    @LukeAvedon 5 лет назад +2

    You are truly a gifted teacher.

  • @rehansarfraz4091
    @rehansarfraz4091 4 года назад +7

    I can't believe this thing is free. great content. you're sure getting blessed with quite a lot prayers....

  • @gabebraden915
    @gabebraden915 5 лет назад +2

    Great jog Corey! Very useful tutorial. Thanks