Flask Tutorial #1 - How to Make Websites with Python
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
Start a high paying tech career making $60k+/year with NO DEBT: coursecareers.com/a/techwithtim
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.
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.
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.
oh
Good
I have started learning Python these past few months and have a lot to thank Tim for his content.
It's exact tutorials I'm looking for. I like the speed of tutorial and your explanation. Thank you Tim.
The tag is . . .
Nevermind, we learn python here.
The tag is. . .
Isn't this tag to make the letter smaller or larger?
@@quandoeuforrico It is to make the text larger
@@quandoeuforrico Larger
@@theboiyoulove5124 yep
@@quandoeuforrico Basically h1 is the largest Heading tag.
Wow Flask is surprisingly easy to get a simple page up and running. Thanks Tim! Always appreciate your Python videos.
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.. ❤️
Omg I was wishing that you would do a flask tutorial. Thanks for this
When you open terminal mine doesn't say pythonyoutubeflasktutorial
Plus when he says on the end run that I don't understand what in supposed to do
please make a full flask tutorial that is brain friendly.
@Ninters yes
Mind size: smol as fuk
what a fantastic name you have
I tried to say your name.. my bed started floating
yeah he just telling us what to do but not why
Thanks Tim for the quick and clear introduction! Got me started on Flask!
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!
Maybe I am...
Tech With Tim Btw, would a simple login system fit in the series? Or would it get too complicated with saving passwords etc?
@@maxdenoudsten2596 hello bro for making the login system you need a cloud database which secure for storing complex details
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
After watching your tutorial, i fell in love with 3 things: You, Flask and Learning!!
Thank you so so much!
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!
Same here. Corey is a great teacher but his tutorial didn't seem appealing to me
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!
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.
Are you gonna make a Flask series too? I look forward to watching it. You really explain well
yep!
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.
I have a video on my Python dev environment where I discuss these!!
@@TechWithTim thank you. I will go look for it now.
bit struggling running it in command prompt, but finally i run my webpage. thanks to you time
Great job Tim! I was able to follow what you did and had no issues!
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..
This video deserves to go viral, it's that good
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.
Would love to see how to get input from a HTML form and use it in a python program. That would be pretty cool!
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?
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
Splendid! Perfect. Thanks
Thank you very much for helping at a subject when the teacher and Google have failed to do it for me.
Nice tutorial .. step by step clear explanation.Thanks for sharing the knowledge
You may want to start with the concept of a virtual environment. Coming from javascript land this is very new
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!
can you tell me how to download flask?
@@Krato65 if u r using vscode just write (in the terminal) the following: pip install flask
Truly wonderful since I am interested in using Python for Networking...
this is a blessing
tim is my messiah
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.**
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!
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
👽 Nice StarTrek Chair !!
thank you so much tim for the tutorial It was a good start for web development
All this just to print hello. You can do this with very basic html
Hello
Hey Tim, what's the brand of your chair? Is that good? Any recommendation?
It’s a gaming chair, check amazon for gaming chairs
Just came from django. Damn flask seems so straightforward. I’m not going back to learning django
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.
I HARDLY COMMENT. THIS IS A GOOD TUTORIAL. GREAT FOR REFRESHING IN MY OWN CASE
Crystal clear that's exactly what I like in these tutorials. Thanks Tim
If you have a problem at the "python 'tutorial 1.py' " try python -m flask run
It says,
"Error: Couuld not import "FILENAME".
Really awesome stuff Tim, thank you for sharing.
Loved this tutorial
Omg I was waiting for Django and Flask tutorials thanks Man
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...🏋️♂️🏋️♂️
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."
same
Thanks Tim you made this very straight forward
surprised there aren't a ton of comments says "Get in the flask!" rofl
You are awesome :) Please continue the Flask series.
wow. a tutorial that actually makes sense. bless you sir
this is pretty help for newbie like me, thanks a lot for great work.
what software did he used?
Bro, u r a genius...
I'm completely blown by your knowledge...
What is ur age?
he is like 19
@@user-xe1pn6mm6p No he's 22
Watching this! Looking to the rest of the series!
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.
By far the best introduction and explanation for a beginner... Well done mate!
Note: If you have worked with Spring or Spark for Java then Flask is an easy transition.
please dont stop, keep make about flask big sub to you sir
Make a flask series! And also after that make a django series thank you😀
he already has a Django series.. Go check it..
Thanks for this flask series sir., very kind of you to make such useful tutorials for us..
Exactly what i needed. Thanks man!
Thanks Tim for so clear and crisp explanation for starting with Flask App.
you forgot to put a corner thing at 1:40 for pip.
what is the extension that you use which colors the whitespaces/tabspace in vscode?
Thank you so much. Really helpful!
nice I am so pumped to get into it
Thank you for this tutorial, it helps me a lot!
Thanks bro, your video really helped. But one question, are u in the habit of using incognito mode🌝💀
thanks tim u help me out a lot anyway keep it up bro
Great video Tim thank you!
Fantastic! This is exactly what I needed, very clear video, keep up the good work!
very good tutorials, i understand them perfectly, subscribed!
Thank you ... great tutorial !!
Brilliantly paced. 500k subs well-earned :D
what app did you use to code?
This was really clear and helpful. Thank you.
can you please make a full flask tutorial and also deploying the app in heroku!!!!
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
Why didn't u use oop instead? Isn't it more organized and efficient?
I just wanted to know what are the prerequisites for getting started with flask?
Great it's easy😳
it took me 10 videos of django tutorial to do just what in this video , django is extremely hard !
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
Coming from Django, Flask seems a lot easier to use
Awesome explanation, really liked it
What plugins do you use in Sublime to program in Python? I like using Sublime more like IDE.
You don't need plugins for Sublime you just type code into it. Then you save the file as .py
Great video Tim!
Cool. Thanks.
Fantastic!!!! Thank you!
Well explained. Thanks.
yeah these tutorials are do what I do, more then a learning experience
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?
Can u add a lesson on fetching and parsing json data from an api with flask
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.
I think that instead of returning redirect(url_for("home")) you can just return redirect("/")
Great tim doing a great stuff here!!!
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)
Ryan Meunier same problem
Were you able to find a solution for this ? If yes, please help out .
Please help out . I've the same problem
Same here.