Тёмный

How to Create a Web Application in Python using Flask 

Dave Gray
Подписаться 320 тыс.
Просмотров 62 тыс.
50% 1

Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
Learn how to create web application in Python using Flask. This is the final project of the Python for Beginners series. Link in the description for the full playlist. We will create a Python web app that retrieves and displays the weather for any major city.
💖 Support me on Patreon ➜ / davegray
⭐ Become a full-stack dev with Zero To Mastery Courses:
- The Complete Python Developer: bit.ly/CompPythonDev
- Complete Machine Learning & Data Science: bit.ly/CompMachineLearning
- Junior to Senior Dev Roadmap: bit.ly/WebDevRoadmap-JrtoSr
🚩 Subscribe ➜ bit.ly/3nGHmNn
📬 Course Updates ➜ courses.davegray.codes/
❓ Questions - Please post them to my Discord ➜ / discord
☕ Buy Me A Coffee ➜ www.buymeacoffee.com/davegray
👇 Follow Me On Social Media:
Github: github.com/gitdagray
Twitter: / yesdavidgray
LinkedIn: / davidagray
🔗 Source Code: github.com/gitdagray/python-c...
🔗 Playlist for this Python Course: bit.ly/dg-beginners-python
How to Create Web Application in Python using Flask
(00:00) Intro
(00:05) Welcome
(00:13) Overview
(01:04) Create & activate a Virtual Environment
(02:18) Install packages with PIP
(03:40) .gitignore and .env files
(06:48) static and templates
(12:51) Create the weather module
(18:14) Getting started with Flask
(21:57) Switching to a production server
(23:15) Weather Results template
(31:03) Running the app
(33:08) Handling unexpected input
(43:32) Deploying the app to the web
📚 Tutorial References:
🔗 Python Official Site: www.python.org/
🔗 Visual Studio Code Official Site: code.visualstudio.com/
🔗 Python Module Index: docs.python.org/3/py-modindex...
🔗 Python Standard Library: docs.python.org/3/library/ind...
🔗 Python Package Index (PyPI): pypi.org/
🔗 Flask: flask.palletsprojects.com/
🔗 OpenWeatherMap.org API: openweathermap.org/
Was this Python tutorial about how to build a Flask web application with Python helpful? If so, please share. Let me know your thoughts in the comments.
#python #flask #application

Опубликовано:

 

12 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 48   
@user-yi9eh6bm5l
@user-yi9eh6bm5l 11 месяцев назад
This tutorial is pure gold, Thank you Dave!
@LeonelLopezBorbon
@LeonelLopezBorbon Год назад
Dave, you are the best at teaching us Python. Thanks! 🚀
@dharma01v
@dharma01v 5 месяцев назад
Thanks Dave, did the whole series! appreciate your work very much!
@Whatthetrash
@Whatthetrash Год назад
This is fantastic! Thanks so much! This is just what I needed! ^_^
@JeanCMT
@JeanCMT 5 месяцев назад
I just started watching the last video of the tutorial. Amazing videos 🎉
@nadetdevfullstack7041
@nadetdevfullstack7041 7 месяцев назад
Excellent Dave !
@JohnL-bp4fjj
@JohnL-bp4fjj 3 месяца назад
clear explanations, easy to follow, great educator!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 месяца назад
Glad it was helpful!
@VenkatesanVenkat-fd4hg
@VenkatesanVenkat-fd4hg Месяц назад
Entire playlists is a top-notch.
@Lee-zo3dy
@Lee-zo3dy 2 месяца назад
great video! Appreciate!
@hifived
@hifived 11 дней назад
your video was very easy to understand. thank you
@andrewclarke6916
@andrewclarke6916 11 месяцев назад
Thanks for this series on Python, Dave. It's been enjoyable to learn but I think I'll continue to stick with JavaScript for the time being.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 11 месяцев назад
Depending on need, I use both 😀
@utinthein7274
@utinthein7274 11 месяцев назад
thank you, sir
@RiyaSingh-ke7dq
@RiyaSingh-ke7dq Месяц назад
thankyou dev
@pietraderdetective8953
@pietraderdetective8953 6 месяцев назад
Woww what an amazing channel you got here Sir! Liked and subbed! Any chance a video on Quart? It's the async version of Flask. Cheers!
@johnforeverrules
@johnforeverrules 11 месяцев назад
this is an awesome video dave sensei. will there be a django video as well master? thank you so much for all the easily accessible high quality content. God bless
@azharmahmood624
@azharmahmood624 11 месяцев назад
Dave once again a remarkable video, please merge all Python videos in single one. if you have done this before, please share the link
@DaveGrayTeachesCode
@DaveGrayTeachesCode 11 месяцев назад
I will in the near future.
@arcturien
@arcturien 11 месяцев назад
Thanks Dave for this course. This is the first python course that I was able to complete!!! Do you have some plan to also create a flutter beginner course? 😅
@DaveGrayTeachesCode
@DaveGrayTeachesCode 11 месяцев назад
No plans for Flutter in the near future.
@arcturien
@arcturien 11 месяцев назад
@@DaveGrayTeachesCode Thanks for the answer!!!
@mariofreddy7353
@mariofreddy7353 11 месяцев назад
Good video what theme color you use in visual code
@semepuro
@semepuro 6 месяцев назад
Do you think any python feature (audio input / output) could be easily ported on the web with Flask ?
@rexanaekii
@rexanaekii 11 месяцев назад
u are so great, I wanna be like you💖💖
@khalilbenmeziane8836
@khalilbenmeziane8836 Год назад
thank you dave we want some django rest frmaework please
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
Patience please. I needed to complete the Python for Beginners playlist. I'll move forward from here.
@robin2080
@robin2080 Год назад
Maybe a Django series next?
@anirudh2660
@anirudh2660 Год назад
Hi Dave, is it the last video of this playlist?
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
Last video of this beginners course. I may add other Python videos to the playlist to follow after the course.
@anirudh2660
@anirudh2660 Год назад
@@DaveGrayTeachesCode thanks 👍
@ram_qr
@ram_qr Год назад
👍
@dennisdegraphicsdynamo_999
@dennisdegraphicsdynamo_999 5 месяцев назад
I run into this error whiles deploying ERROR: Invalid requirement: 'This is the change' (from line 1 of requirements.txt)
@patmower46
@patmower46 5 месяцев назад
David. I've been through most of the video. When I go to run the server.py file, I get first of all a prompt that says I'm using SH. Also, when I bring up the browser I get a sign in request. Any idea of why? I am using Linux Mint Thank you.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 5 месяцев назад
Not totally sure because I don't have a Linux machine here. I _think_ SH is a reference to your shell. A quick Google: www.google.com/search?q=linux+sh ..and it seems likely. Here's a link to the VS Code docs for using Python and Linux together: code.visualstudio.com/docs/python/python-tutorial#_linux
@patmower46
@patmower46 5 месяцев назад
@@DaveGrayTeachesCode Dave. I found the problem with my stuff. First, I had to RUN flask - 'flack run". once I did that, everything seemed to clearn up,....sorry to have bothered you. Got it to run SUPERBLY! You are a great instructor. Keep up the good work.
@pritambera5454
@pritambera5454 11 месяцев назад
I got a problem. After activating "format on save" in vs code when I press ctrl+s it automatically put a "/" after and like this or Can anyone help me out?
@DaveGrayTeachesCode
@DaveGrayTeachesCode 11 месяцев назад
Sounds like you are using Prettier for the format on save setting. If you get into the settings.json file for VS Code, my HTML format setting is this: "[html]": { "editor.defaultFormatter": "vscode.html-language-features" },
@pritambera5454
@pritambera5454 11 месяцев назад
@@DaveGrayTeachesCode Thanks for the help. Currently I am doing your HTML tutorial.
@NGMLSECURITY
@NGMLSECURITY 7 дней назад
please I'm getting an error while trying to create the virtual envronment
@andreukattah9428
@andreukattah9428 4 дня назад
Creating a virtual environment is different depending on your machine. The process for Mac will be different from windows, etc.
@pberci71
@pberci71 2 месяца назад
The values are in Fahrenheit not in degree.
@nick6061
@nick6061 11 месяцев назад
I keep getting the error :JAVA_HOME is not set
@nick6061
@nick6061 11 месяцев назад
I am deploying an app that uses a ml model and pipeline so I am using pyspark
@dickschweiger289
@dickschweiger289 7 месяцев назад
Laughing, I see less and less people following to the end, not your fault. I guess a lot of them tok the full course
@shayanauyb8278
@shayanauyb8278 5 месяцев назад
Hi I am student I have a project In my project I have got a problem and I don’t know how to fix it If you can help me I will be thankful And if you want I will pay you My project is about face recognition
@deepatterson1894
@deepatterson1894 4 месяца назад
Dave, I love your series, but I need help! I am stuck in LESSON 15 arguments. I cannot get my terminal to call up my file. I followed carefully what you type py hello_person.py -n into terminal many times even tried variations. It always comes back with have done the lesson a couple of times, even copied and pasted your code into . Here's what I get returned. PS C:\Users\Latest Blender\Documents\learning Python\Dave Grey> py hello_person.py -n C:\Users\Latest Blender\AppData\Local\Programs\Python\Python312\python.exe: can't open file 'C:\\Users\\Latest Blender\\Documents\\learning Python\\Dave Grey\\hello_person.py': [Errno 2] No such file or directory PS C:\Users\Latest Blender\Documents\learning Python\Dave Grey> Thank you for your awesome lessons! I really want to finish the course but feel like I can't move on until I have this issue figured out.
Далее
🎙ПЕСНИ ВЖИВУЮ от КВАШЕНОЙ🌹
3:09:38
Python Virtual Environment and pip for Beginners
30:39
FastAPI, Flask or Django - Which Should You Use?
9:49
Python Flask Crash Course 2023
1:34:18
Просмотров 8 тыс.
Web Developer Roadmap (2024) - Everything is Changing
25:02
The Truth About Learning Python in 2024
9:38
Просмотров 147 тыс.
Making a Game in Python with No Experience
5:57
Просмотров 1,6 млн
5 Design Patterns That Are ACTUALLY Used By Developers
9:27