Тёмный

Setup a Flask Application in VS Code and Run a Basic App 

Code Void
Подписаться 2,3 тыс.
Просмотров 169 тыс.
50% 1

Hello everyone! this a video tutorial on how to set up a flask environment in Visual Studio Code and how to run a basic application.
Make sure you have python installed: www.python.org...
Please Like and Share the video and Subscribe to the Channel
Thank You for Watching and Keep Coding!

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

 

27 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 180   
@SMUS16475
@SMUS16475 2 года назад
Thanks for the instruction. I'm taking a course this semester that specializes in developing web apps using the Flask back-end framework, and I think this video was very useful in giving me a basic rundown on the Flask app setup in VS Code.
@codevoid
@codevoid 2 года назад
I’m glad you found the content useful !
@nicolastrudel9320
@nicolastrudel9320 2 года назад
Where are u taking this class ? Thanks
@pahadi_munda1040
@pahadi_munda1040 Год назад
​@@nicolastrudel9320😅🥰hu😅🥰u
@ciconid
@ciconid 2 года назад
Thank you so much for this! I ran into some problems while following these steps, specially because I didn't have PATH configured correctly. But after some googling and researching (and some screaming as well) everything worked, so again, thank you!
@mansigarg9904
@mansigarg9904 Год назад
Very easy explanation about how to setup flask in vs code. Keep going. All the good wishes
@Ultra_InstinctBit.h
@Ultra_InstinctBit.h 9 месяцев назад
bro ur video is good but when i enter activating command it is not entering that env file i have installed flask then externally but then also when i use it in my app.py file in vscode it shows that flask is could not resolved i have checked it on GPT also but not getting solution please did anyone know its solution
@imterminator210
@imterminator210 2 года назад
After installing virtualenv virtualenv env this step it is showing virtualenv is not recognised as an internal or external command, Plzzz help
@HingalshDealer
@HingalshDealer 6 месяцев назад
I've installed virtual env but I have the Error: 'virtualenv' is not recognized as an internal or external command, operable program or batch file.
@achillesmichael5705
@achillesmichael5705 2 года назад
Fast and to the point, good job
@codevoid
@codevoid 2 года назад
Thank you !
@alan-overthenet
@alan-overthenet 8 месяцев назад
Thank you, this was a great quick start guide
@juanalvarez-perez6295
@juanalvarez-perez6295 Год назад
Perfect video, not many people are as skilled as you at making things so easy to understand
@codevoid
@codevoid Год назад
Thank you for your kind words !
@VaibhaviHumnabadkar-x8o
@VaibhaviHumnabadkar-x8o 2 месяца назад
What if u got error in 1st line of code pip install virtualenv ??? Its saying that file is not loaded but it is actually there what to do?
@anitakalangutkar4237
@anitakalangutkar4237 3 месяца назад
This is very easy to understand ..very nicely explained❤
@khalilhamed8743
@khalilhamed8743 5 месяцев назад
Great demonstration. Though I really need to ask. Do I have to make all of these steps for each app I create or is it a one time thing?
@jackhealy2341
@jackhealy2341 Год назад
Great video. Was able to get through everything except the end. When I click the link after 'flask run' i get an internal server error. i had no problem before we did html and css adds. any advice here?
@VaibhaviHumnabadkar-x8o
@VaibhaviHumnabadkar-x8o 2 месяца назад
What if u got error in 1st line of code pip install virtualenv ??? Its saying that file is not loaded but it is actually there what to do? 2:09
@tinkerbell3813
@tinkerbell3813 2 года назад
Amazing video dude no wasting of time. It helped a lot!
@codevoid
@codevoid 2 года назад
Thanks and glad you found it helpful !
@abhayshah1586
@abhayshah1586 3 года назад
Great intro to flask, really helpful
@AmitKumar-kl6wd
@AmitKumar-kl6wd Год назад
Thank You - this video helped to resolve my issue
@mircagardenman7629
@mircagardenman7629 2 года назад
Mr. We need you. Please make more Flask videos. I have subscribed and just turned on my notifications. Please we need you.
@codevoid
@codevoid 2 года назад
More videos will be up soon ! Glad you liked it !
@prasannagoud4870
@prasannagoud4870 2 года назад
@@codevoid thanks for your efforts Most underrated channel I can say Subscribed just now ❤️
@sandunuhettiarachi5124
@sandunuhettiarachi5124 2 года назад
Is it much needed to create a Virual environment.? because i got following error while activating virtual environment.. "cannot be loaded because running scripts is disabled on this system."
@tpgraphics99
@tpgraphics99 Год назад
Thank You ! It was easy to understand.
@VaibhaviHumnabadkar-x8o
@VaibhaviHumnabadkar-x8o 2 месяца назад
What if u got error in 1st line of code pip install virtualenv ???
@keganheke4273
@keganheke4273 Год назад
i have python installed but when i go to see on command prompt it says Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
@christiaanvanderberg9833
@christiaanvanderberg9833 2 года назад
Awesome thank you very much have been struggleing alot thanks man
@codevoid
@codevoid 2 года назад
Glad I could help !
@eduardo9986
@eduardo9986 2 года назад
Thanks man, it was a short video but helped a lot
@codevoid
@codevoid 2 года назад
Glad you found it helpful !
@kabidyeiad2094
@kabidyeiad2094 2 года назад
thank you bhai, love from Bangladesh
@codevoid
@codevoid 2 года назад
Thank you ! Glad I could help
@Lifeofkashh31
@Lifeofkashh31 Год назад
what if after writing the env command we are not getting into the enevironment its not showing (env) this part after activating
@Samirkhan.0_Official
@Samirkhan.0_Official Год назад
Set-Executionpolicy -scope CurrentUser Unrestricted {Run this in ur vs cord terminal after that activate ur visual enveronment will work...try this..}
@atharvapurohit3585
@atharvapurohit3585 6 месяцев назад
still didn't work @@Samirkhan.0_Official
@atharvapurohit3585
@atharvapurohit3585 6 месяцев назад
env\Scripts\activate (without .bat)
@ReasonablyRetro
@ReasonablyRetro 2 года назад
This was super helpful. Thank you!
@codevoid
@codevoid 2 года назад
I’m glad you found it helpful !
@capturedart0
@capturedart0 3 месяца назад
Thanks, please make a login page with the help of flask and html
@lostgen36
@lostgen36 2 года назад
Thanks a lot dude, great tutorial!
@codevoid
@codevoid 2 года назад
Glad you liked it!
@wookie3261
@wookie3261 2 года назад
thank you for your kind video!
@codevoid
@codevoid 2 года назад
Glad you liked it !
@LilGam3r1
@LilGam3r1 2 года назад
Hey, I followed what you did and i got this error: * Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Debug mode: off Usage: flask run [OPTIONS] Try 'flask run --help' for help. Error: Failed to find Flask application or factory in module 'app'. Use 'FLASK_APP=app:name' to specify one. what am i doing wrong? Great video nonetheless
@codevoid
@codevoid 2 года назад
Hey, please make sure to set the flask environment variable correctly, thank you !
@Minn-v6r
@Minn-v6r 2 года назад
Same problem occurred can u say how u resolved it
@LilGam3r1
@LilGam3r1 2 года назад
@@Minn-v6r im not sure i havent tried since then, I changed IDE too.
@gouthams222
@gouthams222 2 года назад
Have you tried saving the current file(Ctrl+S) and do flask run
@ashkraze
@ashkraze 2 года назад
@@gouthams222 Thank you so much bhaii
@JohnDoe-rj9oy
@JohnDoe-rj9oy Год назад
Perfect. Thanks a lot.
@HetShah-i2x
@HetShah-i2x Год назад
activate.bat is not working in pc what should i do and i'm using windows 10
@Souvik148
@Souvik148 3 года назад
After executing flask, auto update is not working in case the code changes.
@07Ninaki
@07Ninaki Год назад
Thank you very much for sharing this video! It was very good! But how can I create a python file? Especially I need to create a Python file that includes flask server in this environment. With the same way with CSS and HTML? Thank you in advance!
@TosinAdeleye-w3w
@TosinAdeleye-w3w Месяц назад
tysm i needed this
@nicolastrudel9320
@nicolastrudel9320 2 года назад
When i try to pip install it says command file not found ?
@artshavi
@artshavi 2 года назад
same
@rakoczipiroska5632
@rakoczipiroska5632 2 года назад
Thank you for this video. It was easy to understand.😊
@josevannel4819
@josevannel4819 7 месяцев назад
Flask is not opening web browser it is running in kali terminal 😢
@vilassonje7540
@vilassonje7540 Год назад
thanks
@bilalahsan678
@bilalahsan678 2 года назад
How to debug step by step in vs code, you are just using command line and not showing vs features
@annarocha9769
@annarocha9769 2 года назад
Thank you sooooo much!!
@codevoid
@codevoid 2 года назад
You're welcome!
@comradejames451
@comradejames451 2 года назад
good
@ghomellerpido2
@ghomellerpido2 2 года назад
why I can't enter in virtual environment?
@arunchandra5255
@arunchandra5255 Год назад
Thank you.
@techideasnz
@techideasnz Год назад
Note the use of cmd terminal not powershell in the video
@nivethak_3658
@nivethak_3658 Год назад
I can't activate the env?how to activate that ?Is it need network connection?
@spitfirelast8761
@spitfirelast8761 Год назад
go to your environment folder where you did the cmd "venv yourenvironmentname" then locate the scripts folder and locate activate.bat so in your cmd it should look like c:\user\yourname\yourenvironmentnamefolder\scripts\activate.bat then run it in cmd. now it should look (yourenvironmentnamefolder) C:\Users\yourname\yourenvironmentnamefolder
@brejeamar2225
@brejeamar2225 Год назад
Im getting some issues $ flask run Usage: flask run [OPTIONS] Try 'flask run --help' for help. Error: Failed to find Flask application or factory in module 'app'. Use 'app:name' to specify one. can anyone help me at all
@Brainyboy777
@Brainyboy777 4 месяца назад
Same problem, please help me too
@eamonhannon1103
@eamonhannon1103 6 месяцев назад
Great !
@diwakardayal954
@diwakardayal954 Год назад
thank you
@snehakr8398
@snehakr8398 Год назад
Hi sir, I'm facing this error while logging in in my application... I am able to login or signup apart from that it's not proceed only this error what should I do? Can you help me out? MySQLdb.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: NO)")
@motorvehicles9348
@motorvehicles9348 2 года назад
Thank you 💞
@codevoid
@codevoid 2 года назад
Glad the content could help !
@motorvehicles9348
@motorvehicles9348 2 года назад
@@codevoid definitely it helped me .. ❤️
@samuca15151
@samuca15151 Год назад
Thanks.
@codevoid
@codevoid Год назад
Glad I could help !
@khadijajabrikazi2176
@khadijajabrikazi2176 2 года назад
hello and thanks a lot for your explination. i followed all the steps and everything was working but when I comes to run my application I got an error Error: Could not locate a Flask application. You did not provide the "FLASK_APP" environment variable, and a "wsgi.py" or "app.py" module was not found in the current directory. even if i execute the command set FLASK_APP=myApp.py and set FLASK_DEBUG=1
@codevoid
@codevoid 2 года назад
Thank you and please make sure you are in the correct directory
@swethanooka896
@swethanooka896 2 года назад
Getting error like 'pip' is not recognised as the name of cmdlet
@artshavi
@artshavi 2 года назад
i got the same error
@datumtecnologia
@datumtecnologia 2 года назад
Thanks
@codevoid
@codevoid 2 года назад
You’re welcome !
@nachtslotos1534
@nachtslotos1534 2 года назад
How to launch terminal ctrl and ???????
@codevoid
@codevoid 2 года назад
Ctrl + “tilde”, it’s the little wavy icon on your keyboard
@nachtslotos1534
@nachtslotos1534 2 года назад
Ohh but i can't install virtualenv it says pip is not recognised I'm new to vsc
@khanrocks5280
@khanrocks5280 2 года назад
Showing Warning: This is a development server. Do not use it in production deployment. Use a production WSGI Server instead. Debug mode: off
@ff0226
@ff0226 2 года назад
I got the error "python is not found"
@ashishshetty3512
@ashishshetty3512 2 года назад
lol
@ashishshetty3512
@ashishshetty3512 2 года назад
re install python and link it to environment variable path
@hamdijiheneya6944
@hamdijiheneya6944 9 месяцев назад
Merçi
@sandeepmathu8861
@sandeepmathu8861 2 года назад
bro. i have an error (env) C:\Users\91994\Desktop\flaskdemo2>flask run Usage: flask run [OPTIONS] Try 'flask run --help' for help. Error: Failed to find Flask application or factory in module 'app'. Use 'app:name' to specify one. please tell me how i solve this.
@ashishshetty3512
@ashishshetty3512 2 года назад
did u solve it buddy?
@brejeamar2225
@brejeamar2225 Год назад
@@ashishshetty3512 im getting the same thing
@Dr.Cosmar
@Dr.Cosmar 2 года назад
Slow down. Thanks for the instructions, but you are trying to rush through it. Having to stop typing code just to pause and rewind because you zipped somewhere else or stopped typing in the terminal is kinda the bane of every online learners existence. (milk that watch time man, coulda been a 30 min video) Thanks for the content though.
@sil08
@sil08 Год назад
If it doesnt run try changing the " from __main__ into '
@Faisal-jo5vk
@Faisal-jo5vk 2 года назад
when i do virtualenv env it shows this :- virtualenv : The term 'virtualenv' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
@Faisal-jo5vk
@Faisal-jo5vk 2 года назад
ok all i had to do was write: python -m virturalenv env
@Faisal-jo5vk
@Faisal-jo5vk 2 года назад
i had to write python -m flask run aswell
@imterminator210
@imterminator210 2 года назад
Same error how did you do
@reigningmb133
@reigningmb133 2 года назад
Yes please tell
@reigningmb133
@reigningmb133 2 года назад
How to did u rectify it
@VaibhaviHumnabadkar-x8o
@VaibhaviHumnabadkar-x8o 2 месяца назад
What if u got error in 1st line of code pip install virtualenv ??? Its saying that file is not loaded but it is actually there what to do?
@mayankchandan5704
@mayankchandan5704 2 года назад
Great !
@niharikarawat378
@niharikarawat378 Год назад
thank you
@laichinyet7449
@laichinyet7449 2 года назад
Hi, after I enter "env\Scripts\activate.bat" , it doesn't show the (env). It is just showing back the C:\user.... What should I do? I couldn't activate it.
@AmitKumar-vn5rp
@AmitKumar-vn5rp Год назад
Bro answer mila iska same problem occur
@naveenkumars5869
@naveenkumars5869 Год назад
Use only env\Scripts\activate don't use .bat
@Samirkhan.0_Official
@Samirkhan.0_Official Год назад
Set-Executionpolicy -scope CurrentUser Unrestricted Run this in ur vs cord terminal after that activate ur visual enveronment will work...try this..
@atharvapurohit3585
@atharvapurohit3585 6 месяцев назад
thanks!! @@naveenkumars5869
@mhdvlogs2130
@mhdvlogs2130 5 месяцев назад
.\env\Scripts\activate ===try this
@ahmadmponda3294
@ahmadmponda3294 Год назад
thank you,was having many issues with env but having watched your video got me set, ready and go.
@codevoid
@codevoid Год назад
You're welcome!
@zmshashmi420
@zmshashmi420 2 года назад
very helpful video plz make a complete series on Flask and develop a small shopping cart application that clears our concepts.. plz share your precious knowledge with us. Thanks
@codevoid
@codevoid 2 года назад
Thank you so much and Yes, more videos will be up soon !
@AnushaRaj-e1w
@AnushaRaj-e1w Месяц назад
Thankuu sir
@gmaxgaming7657
@gmaxgaming7657 5 месяцев назад
I have no words to thank you 😘😘😘😘
@amanrohilla6659
@amanrohilla6659 4 месяца назад
bro i installed the flask but vs code is showing module not found what the problem plesase resolve this
@ritikaranjan7606
@ritikaranjan7606 2 года назад
I am getting error here please help. PS C:\Users\HP\Desktop itika> flask run * Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Debug mode: off Usage: flask run [OPTIONS] Try 'flask run --help' for help. Error: Failed to find Flask application or factory in module 'app'. Use 'FLASK_APP=app:name' to specify one. PS C:\Users\HP\Desktop itika>
@ashishshetty3512
@ashishshetty3512 2 года назад
did it resolve
@Brainyboy777
@Brainyboy777 4 месяца назад
Same problem help me out as well
@siddhirajdalvi7917
@siddhirajdalvi7917 2 года назад
Thanks boy
@X-llllllllll-X
@X-llllllllll-X Год назад
Run 'python3 --version' in your terminal to check to see if you have installed it. python --version without the '3' wasn't working for me. Hope this helps someone out there! Happy coding!
@BearLeeHangin
@BearLeeHangin Год назад
Thanks man!!
@zhenyasakal9334
@zhenyasakal9334 2 года назад
Thank you! This was comprehensive and extremely helpful!
@codevoid
@codevoid 2 года назад
Glad you found it helpful !
@AmitKumar-vn5rp
@AmitKumar-vn5rp Год назад
Sir please tell me how we activate env env/scripts/activate.
@spitfirelast8761
@spitfirelast8761 Год назад
env/scripts/activate.bat
@mhdvlogs2130
@mhdvlogs2130 5 месяцев назад
.\env\Scripts\activate ===try this in last step
@jhonabudhabi7212
@jhonabudhabi7212 2 года назад
This is soo amazing I made my First application soo blessed sir how can I get in touch for more detailed learning from you thanks alot one more time
@codevoid
@codevoid 2 года назад
Glad I could help
@SakethK-s3r
@SakethK-s3r Год назад
Thank you so much
@klier8737
@klier8737 2 года назад
Thanks for the help! It worked and it was clear!
@techseeker_d2971
@techseeker_d2971 2 года назад
Thanks a lot
@likhithshankar5320
@likhithshankar5320 2 года назад
tHnkS
@k.k1544
@k.k1544 6 месяцев назад
When I run virtualenv env..... Getting an error virtualenv is not cmdl......😢😢😢 how can I fix it
@shashankmn1663
@shashankmn1663 2 года назад
Thank you
@codevoid
@codevoid 2 года назад
Glad you found the content helpful !
@AsifDawood
@AsifDawood Год назад
Very good video. For every flask app we create must we go through the same procedure of installlation of virtual environment , flask etc
@santiagoviana2671
@santiagoviana2671 2 года назад
Hi everyone, I am writting "env/bin/activate" from osx and Terminal return me that: "env/bin/activate: command not found"
@sahilkumbhar503
@sahilkumbhar503 2 года назад
Thank u so much brother 💪🏻
@codevoid
@codevoid 2 года назад
You’re welcome, glad I could help !
@DALYODHSINGH
@DALYODHSINGH 11 месяцев назад
thnaks a lot for this bro I need it today for making assignment
@jay3101
@jay3101 Год назад
i have issues with activating in mac m1 can you help me out
@divyajamgala6089
@divyajamgala6089 Год назад
Flask run command is not working properly
@teddyperera8531
@teddyperera8531 Год назад
very useful. thank you.
@s_wrdk
@s_wrdk 2 года назад
Hello, it doesn't work for me..
@yoanngrudzien2588
@yoanngrudzien2588 2 года назад
Thank you very much for this clear and concise tutorial, this is really helpful !
@codevoid
@codevoid 2 года назад
Glad you found it helpful !
@sinasaber246
@sinasaber246 11 месяцев назад
Thanks for providing this wonderful course, there is an issue on my side which I'm facing with an error when I use the 'flask run'. it shows ERROR: Could not locate a Flask application. can you please guide me?
@audreysaidel4195
@audreysaidel4195 8 месяцев назад
me too
@christianleblanc881
@christianleblanc881 10 месяцев назад
2.00 press ctrl?
@atharvapurohit3585
@atharvapurohit3585 6 месяцев назад
key above tab
@sandhiyathirugnanaselvam2018
I face an internal server error every time I run the program...but there are no errors in my program..do anyone have any idea about this..?
@jackhealy2341
@jackhealy2341 Год назад
same issue
@abinavsivakumar2633
@abinavsivakumar2633 Год назад
thanks bro
@rekhashah787
@rekhashah787 3 года назад
Great tutorial !
@codevoid
@codevoid 3 года назад
Thank you!
Далее
Make A Python Website As Fast As Possible!
22:21
Просмотров 690 тыс.
Witch changes monster hair color 👻🤣 #shorts
00:51
How to get started with VS Code
17:48
Просмотров 62 тыс.
How to Set up VS Code for Data Science & AI
22:53
Просмотров 311 тыс.
Getting Started with Flask (using VS Code)
12:52
Просмотров 43 тыс.
How to Create a Web Application in Python using Flask
52:52
Developing a Flask app with Visual Studio Code
1:17:01
Full Flask Course For Python - From Basics To Deployment
3:42:31
Understanding A Sample Flask Web Application Skeleton
14:27