No video

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

  Рет қаралды 165,652

Code Void

Code Void

Күн бұрын

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!

Пікірлер: 180
@ciconid
@ciconid Жыл бұрын
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!
@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
@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!
@mansigarg9904
@mansigarg9904 11 ай бұрын
Very easy explanation about how to setup flask in vs code. Keep going. All the good wishes
@achillesmichael5705
@achillesmichael5705 2 жыл бұрын
Fast and to the point, good job
@codevoid
@codevoid 2 жыл бұрын
Thank you !
@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 !
@alan-overthenet
@alan-overthenet 6 ай бұрын
Thank you, this was a great quick start guide
@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 !
@gmaxgaming7657
@gmaxgaming7657 4 ай бұрын
I have no words to thank you 😘😘😘😘
@anitakalangutkar4237
@anitakalangutkar4237 2 ай бұрын
This is very easy to understand ..very nicely explained❤
@zhenyasakal9334
@zhenyasakal9334 2 жыл бұрын
Thank you! This was comprehensive and extremely helpful!
@codevoid
@codevoid 2 жыл бұрын
Glad you found it helpful !
@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
@tinkerbell3813
@tinkerbell3813 2 жыл бұрын
Amazing video dude no wasting of time. It helped a lot!
@codevoid
@codevoid 2 жыл бұрын
Thanks and glad you found it helpful !
@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
@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 !
@HingalshDealer
@HingalshDealer 5 ай бұрын
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.
@abhayshah1586
@abhayshah1586 2 жыл бұрын
Great intro to flask, really helpful
@AmitKumar-kl6wd
@AmitKumar-kl6wd Жыл бұрын
Thank You - this video helped to resolve my issue
@tpgraphics99
@tpgraphics99 Жыл бұрын
Thank You ! It was easy to understand.
@klier8737
@klier8737 2 жыл бұрын
Thanks for the help! It worked and it was clear!
@Ultra_InstinctBit.h
@Ultra_InstinctBit.h 8 ай бұрын
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
@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 5 ай бұрын
thanks!! @@naveenkumars5869
@mhdvlogs2130
@mhdvlogs2130 4 ай бұрын
.\env\Scripts\activate ===try this
@kabidyeiad2094
@kabidyeiad2094 2 жыл бұрын
thank you bhai, love from Bangladesh
@codevoid
@codevoid 2 жыл бұрын
Thank you ! 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 !
@AnushaRaj-e1w
@AnushaRaj-e1w 6 күн бұрын
Thankuu sir
@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 ❤️
@user-me3gl4hm2u
@user-me3gl4hm2u 11 күн бұрын
tysm i needed this
@khalilhamed8743
@khalilhamed8743 4 ай бұрын
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?
@christiaanvanderberg9833
@christiaanvanderberg9833 2 жыл бұрын
Awesome thank you very much have been struggleing alot thanks man
@codevoid
@codevoid 2 жыл бұрын
Glad I could help !
@ReasonablyRetro
@ReasonablyRetro 2 жыл бұрын
This was super helpful. Thank you!
@codevoid
@codevoid 2 жыл бұрын
I’m glad you found it helpful !
@DALYODHSINGH
@DALYODHSINGH 10 ай бұрын
thnaks a lot for this bro I need it today for making assignment
@wookie3261
@wookie3261 2 жыл бұрын
thank you for your kind video!
@codevoid
@codevoid 2 жыл бұрын
Glad you liked it !
@lostgen36
@lostgen36 2 жыл бұрын
Thanks a lot dude, great tutorial!
@codevoid
@codevoid 2 жыл бұрын
Glad you liked it!
@JohnDoe-rj9oy
@JohnDoe-rj9oy Жыл бұрын
Perfect. Thanks a lot.
@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
@rekhashah787
@rekhashah787 3 жыл бұрын
Great tutorial !
@codevoid
@codevoid 3 жыл бұрын
Thank you!
@VaibhaviHumnabadkar-x8o
@VaibhaviHumnabadkar-x8o Ай бұрын
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?
@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?
@sahilkumbhar503
@sahilkumbhar503 2 жыл бұрын
Thank u so much brother 💪🏻
@codevoid
@codevoid 2 жыл бұрын
You’re welcome, glad I could help !
@arunchandra5255
@arunchandra5255 Жыл бұрын
Thank you.
@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."
@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
@capturedart0
@capturedart0 2 ай бұрын
Thanks, please make a login page with the help of flask and html
@user-uj5ec7gs3d
@user-uj5ec7gs3d Жыл бұрын
Thank you so much
@annarocha9769
@annarocha9769 2 жыл бұрын
Thank you sooooo much!!
@codevoid
@codevoid 2 жыл бұрын
You're welcome!
@teddyperera8531
@teddyperera8531 Жыл бұрын
very useful. thank you.
@VaibhaviHumnabadkar-x8o
@VaibhaviHumnabadkar-x8o Ай бұрын
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
@rakoczipiroska5632
@rakoczipiroska5632 2 жыл бұрын
Thank you for this video. It was easy to understand.😊
@VaibhaviHumnabadkar-x8o
@VaibhaviHumnabadkar-x8o Ай бұрын
What if u got error in 1st line of code pip install virtualenv ???
@vilassonje7540
@vilassonje7540 Жыл бұрын
thanks
@comradejames451
@comradejames451 Жыл бұрын
good
@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!!
@techseeker_d2971
@techseeker_d2971 2 жыл бұрын
Thanks a lot
@siddhirajdalvi7917
@siddhirajdalvi7917 2 жыл бұрын
Thanks boy
@amanrohilla6659
@amanrohilla6659 3 ай бұрын
bro i installed the flask but vs code is showing module not found what the problem plesase resolve this
@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
@sachinbhagat1483
@sachinbhagat1483 11 ай бұрын
Thank you!
@shashankmn1663
@shashankmn1663 2 жыл бұрын
Thank you
@codevoid
@codevoid 2 жыл бұрын
Glad you found the content helpful !
@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.
@diwakardayal954
@diwakardayal954 Жыл бұрын
thank you
@techideasnz
@techideasnz Жыл бұрын
Note the use of cmd terminal not powershell in the video
@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 5 ай бұрын
still didn't work @@Samirkhan.0_Official
@atharvapurohit3585
@atharvapurohit3585 5 ай бұрын
env\Scripts\activate (without .bat)
@eamonhannon1103
@eamonhannon1103 5 ай бұрын
Great !
@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 !
@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!
@k.k1544
@k.k1544 5 ай бұрын
When I run virtualenv env..... Getting an error virtualenv is not cmdl......😢😢😢 how can I fix it
@sinasaber246
@sinasaber246 10 ай бұрын
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 7 ай бұрын
me too
@AmitKumar-vn5rp
@AmitKumar-vn5rp Жыл бұрын
Sir please tell me how we activate env env/scripts/activate.
@spitfirelast8761
@spitfirelast8761 Жыл бұрын
env/scripts/activate.bat
@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 3 ай бұрын
Same problem help me out as well
@datumtecnologia
@datumtecnologia 2 жыл бұрын
Thanks
@codevoid
@codevoid 2 жыл бұрын
You’re welcome !
@user-gx6zj1lh2p
@user-gx6zj1lh2p Жыл бұрын
activate.bat is not working in pc what should i do and i'm using windows 10
@nicolastrudel9320
@nicolastrudel9320 2 жыл бұрын
When i try to pip install it says command file not found ?
@artshavi
@artshavi 2 жыл бұрын
same
@Souvik148
@Souvik148 3 жыл бұрын
After executing flask, auto update is not working in case the code changes.
@jay3101
@jay3101 Жыл бұрын
i have issues with activating in mac m1 can you help me out
@abinavsivakumar2633
@abinavsivakumar2633 Жыл бұрын
thanks bro
@josevannel4819
@josevannel4819 6 ай бұрын
Flask is not opening web browser it is running in kali terminal 😢
@santiagoviana2671
@santiagoviana2671 2 жыл бұрын
Hi everyone, I am writting "env/bin/activate" from osx and Terminal return me that: "env/bin/activate: command not found"
@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
@ghomellerpido2
@ghomellerpido2 2 жыл бұрын
why I can't enter in virtual environment?
@bilalahsan678
@bilalahsan678 2 жыл бұрын
How to debug step by step in vs code, you are just using command line and not showing vs features
@nguyentuannghia2043
@nguyentuannghia2043 2 жыл бұрын
I am stuck at the part when we have to type "env\Scripts\activate.bat" my cmd doesnt include the (env) prefix, can anyone fix this, sr for bad English
@amaramw
@amaramw 2 жыл бұрын
yes me too, please help
@nguyentuannghia2043
@nguyentuannghia2043 2 жыл бұрын
@@amaramw in the terminal you can see the "+" sign, click on it then add "command prompt (default), try to start every step from scratch in this cmd instead of powerShell. Hope this help!
@amaramw
@amaramw 2 жыл бұрын
@@nguyentuannghia2043 thank you so muchhh
@shikhasuman8300
@shikhasuman8300 2 жыл бұрын
@@nguyentuannghia2043 thank u
@tamannasharma742
@tamannasharma742 Жыл бұрын
Can u tell me how u solved it ..same problem is occurring with me
@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
@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
@divyajamgala6089
@divyajamgala6089 11 ай бұрын
Flask run command is not working properly
@s_wrdk
@s_wrdk 2 жыл бұрын
Hello, it doesn't work for me..
@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 3 ай бұрын
Same problem, please help me too
@sandhiyathirugnanaselvam2018
@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
@hamdijiheneya6944
@hamdijiheneya6944 8 ай бұрын
Merçi
@swethanooka896
@swethanooka896 2 жыл бұрын
Getting error like 'pip' is not recognised as the name of cmdlet
@artshavi
@artshavi 2 жыл бұрын
i got the same error
@likhithshankar5320
@likhithshankar5320 Жыл бұрын
tHnkS
@christianleblanc881
@christianleblanc881 9 ай бұрын
2.00 press ctrl?
@atharvapurohit3585
@atharvapurohit3585 5 ай бұрын
key above tab
@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.
@nachtslotos1534
@nachtslotos1534 Жыл бұрын
How to launch terminal ctrl and ???????
@codevoid
@codevoid Жыл бұрын
Ctrl + “tilde”, it’s the little wavy icon on your keyboard
@nachtslotos1534
@nachtslotos1534 Жыл бұрын
Ohh but i can't install virtualenv it says pip is not recognised I'm new to vsc
@mhdvlogs2130
@mhdvlogs2130 4 ай бұрын
.\env\Scripts\activate ===try this in last step
@2ammoodhindi110
@2ammoodhindi110 Жыл бұрын
why pip is not working
@atharvapurohit3585
@atharvapurohit3585 5 ай бұрын
path
@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
@sil08
@sil08 Жыл бұрын
If it doesnt run try changing the " from __main__ into '
@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
@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)")
12 VS Code Extensions to INCREASE Productivity 2024
27:13
Devression
Рет қаралды 662 М.
build a meme Python website (Flask Tutorial for Beginners)
13:30
NetworkChuck
Рет қаралды 480 М.
Fortunately, Ultraman protects me  #shorts #ultraman #ultramantiga #liveaction
00:10
Matching Picture Challenge with Alfredo Larin's family! 👍
00:37
BigSchool
Рет қаралды 44 МЛН
Understanding A Sample Flask Web Application Skeleton
14:27
Krish Naik
Рет қаралды 69 М.
How to get started with VS Code
17:48
Kevin Powell
Рет қаралды 52 М.
Create Stunning Python GUIs in 10 Minutes With Drag & Drop
11:38
Coding Is Fun
Рет қаралды 56 М.
100+ Docker Concepts you Need to Know
8:28
Fireship
Рет қаралды 929 М.
How to Set up VS Code for Data Science & AI
22:53
Dave Ebbelaar
Рет қаралды 300 М.
Make A Python Website As Fast As Possible!
22:21
Tech With Tim
Рет қаралды 682 М.
Fortunately, Ultraman protects me  #shorts #ultraman #ultramantiga #liveaction
00:10