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

Поділитися
Вставка
  • Опубліковано 27 січ 2025

КОМЕНТАРІ • 189

  • @SMUS16475
    @SMUS16475 3 роки тому +11

    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  3 роки тому

      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 роки тому +5

    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!

    • @Automation_Engineer_
      @Automation_Engineer_ Місяць тому

      How did you solve flask run problem? i have same problem too. it gives me Error: Failed to find Flask application or factory in module 'app'. Use 'app:name' to specify one.

  • @ahmadmponda3294
    @ahmadmponda3294 2 роки тому +3

    thank you,was having many issues with env but having watched your video got me set, ready and go.

  • @gmaxgaming7657
    @gmaxgaming7657 9 місяців тому +1

    I have no words to thank you 😘😘😘😘

  • @mariannemagdy7616
    @mariannemagdy7616 Місяць тому

    my friend you are THE ABSOLTE BEST PERSON I HAVE EVER SEEN I HOPE YOU REACH A MILLION SUBS

  • @simonwan9788
    @simonwan9788 3 місяці тому

    Thank you! Been battling how to start on vscode and I was just missing the install virtualenv, and now it works!

  • @mansigarg9904
    @mansigarg9904 Рік тому +2

    Very easy explanation about how to setup flask in vs code. Keep going. All the good wishes

  • @alan-overthenet
    @alan-overthenet Рік тому +2

    Thank you, this was a great quick start guide

  • @achillesmichael5705
    @achillesmichael5705 2 роки тому +4

    Fast and to the point, good job

  • @zmshashmi420
    @zmshashmi420 2 роки тому +3

    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 роки тому +1

      Thank you so much and Yes, more videos will be up soon !

  • @Faisal-jo5vk
    @Faisal-jo5vk 3 роки тому +7

    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.

  • @imterminator210
    @imterminator210 3 роки тому +8

    After installing virtualenv
    virtualenv env this step it is showing virtualenv is not recognised as an internal or external command,
    Plzzz help

  • @anitakalangutkar4237
    @anitakalangutkar4237 7 місяців тому

    This is very easy to understand ..very nicely explained❤

  • @juanalvarez-perez6295
    @juanalvarez-perez6295 2 роки тому +3

    Perfect video, not many people are as skilled as you at making things so easy to understand

    • @codevoid
      @codevoid  2 роки тому +1

      Thank you for your kind words !

  • @zhenyasakal9334
    @zhenyasakal9334 3 роки тому +3

    Thank you! This was comprehensive and extremely helpful!

    • @codevoid
      @codevoid  3 роки тому

      Glad you found it helpful !

  • @AmitKumar-kl6wd
    @AmitKumar-kl6wd Рік тому +1

    Thank You - this video helped to resolve my issue

  • @HingalshDealer
    @HingalshDealer 10 місяців тому +2

    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.

  • @tinkerbell3813
    @tinkerbell3813 3 роки тому +3

    Amazing video dude no wasting of time. It helped a lot!

    • @codevoid
      @codevoid  3 роки тому

      Thanks and glad you found it helpful !

  • @tpgraphics99
    @tpgraphics99 Рік тому +1

    Thank You ! It was easy to understand.

  • @kabidyeiad2094
    @kabidyeiad2094 2 роки тому +1

    thank you bhai, love from Bangladesh

    • @codevoid
      @codevoid  2 роки тому

      Thank you ! Glad I could help

  • @Ultra_InstinctBit.h
    @Ultra_InstinctBit.h Рік тому +2

    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

  • @klier8737
    @klier8737 2 роки тому +1

    Thanks for the help! It worked and it was clear!

  • @christiaanvanderberg9833
    @christiaanvanderberg9833 2 роки тому +1

    Awesome thank you very much have been struggleing alot thanks man

    • @codevoid
      @codevoid  2 роки тому

      Glad I could help !

  • @yoanngrudzien2588
    @yoanngrudzien2588 3 роки тому +1

    Thank you very much for this clear and concise tutorial, this is really helpful !

    • @codevoid
      @codevoid  3 роки тому +1

      Glad you found it helpful !

  • @eduardo9986
    @eduardo9986 3 роки тому +1

    Thanks man, it was a short video but helped a lot

    • @codevoid
      @codevoid  3 роки тому

      Glad you found it helpful !

  • @abhayshah1586
    @abhayshah1586 3 роки тому +3

    Great intro to flask, really helpful

  • @DALYODHSINGH
    @DALYODHSINGH Рік тому

    thnaks a lot for this bro I need it today for making assignment

  • @lostgen36
    @lostgen36 3 роки тому +1

    Thanks a lot dude, great tutorial!

    • @codevoid
      @codevoid  3 роки тому

      Glad you liked it!

  • @ReasonablyRetro
    @ReasonablyRetro 3 роки тому +1

    This was super helpful. Thank you!

    • @codevoid
      @codevoid  3 роки тому

      I’m glad you found it helpful !

  • @laichinyet7449
    @laichinyet7449 2 роки тому +12

    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 2 роки тому +2

      Bro answer mila iska same problem occur

    • @naveenkumars5869
      @naveenkumars5869 2 роки тому +2

      Use only env\Scripts\activate don't use .bat

    • @Samirkhan.0_Official
      @Samirkhan.0_Official Рік тому +1

      Set-Executionpolicy -scope CurrentUser Unrestricted Run this in ur vs cord terminal after that activate ur visual enveronment will work...try this..

    • @atharvapurohit3585
      @atharvapurohit3585 10 місяців тому

      thanks!!
      @@naveenkumars5869

    • @mhdvlogs2130
      @mhdvlogs2130 9 місяців тому +2

      .\env\Scripts\activate ===try this

  • @khalilhamed8743
    @khalilhamed8743 9 місяців тому

    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?

  • @gts123-w1s
    @gts123-w1s 3 місяці тому

    Great video!

  • @wookie3261
    @wookie3261 3 роки тому +1

    thank you for your kind video!

    • @codevoid
      @codevoid  3 роки тому

      Glad you liked it !

  • @Automation_Engineer_
    @Automation_Engineer_ Місяць тому

    after 5:50 i can't run flask. it gives me this error. Please can you help me about it? since two days i'm searching way to solve this problem
    Error: Failed to find Flask application or factory in module 'app'. Use 'app:name' to specify one.

  • @mircagardenman7629
    @mircagardenman7629 3 роки тому +1

    Mr. We need you. Please make more Flask videos. I have subscribed and just turned on my notifications. Please we need you.

    • @codevoid
      @codevoid  3 роки тому +1

      More videos will be up soon ! Glad you liked it !

    • @prasannagoud4870
      @prasannagoud4870 2 роки тому +2

      @@codevoid thanks for your efforts
      Most underrated channel I can say
      Subscribed just now ❤️

  • @VaibhaviHumnabadkar-x8o
    @VaibhaviHumnabadkar-x8o 6 місяців тому

    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

  • @shehrozvirk8330
    @shehrozvirk8330 2 місяці тому

    Thank you so much bro!

  • @JohnDoe-rj9oy
    @JohnDoe-rj9oy 2 роки тому +1

    Perfect. Thanks a lot.

  • @jhonabudhabi7212
    @jhonabudhabi7212 2 роки тому +1

    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

  • @sahilkumbhar503
    @sahilkumbhar503 2 роки тому +1

    Thank u so much brother 💪🏻

    • @codevoid
      @codevoid  2 роки тому

      You’re welcome, glad I could help !

  • @TosinAdeleye-w3w
    @TosinAdeleye-w3w 5 місяців тому

    tysm i needed this

  • @X-llllllllll-X
    @X-llllllllll-X 2 роки тому +1

    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!

  • @VaibhaviHumnabadkar-x8o
    @VaibhaviHumnabadkar-x8o 6 місяців тому

    What if u got error in 1st line of code pip install virtualenv ???

  • @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

  • @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.

  • @rekhashah787
    @rekhashah787 3 роки тому +1

    Great tutorial !

  • @annarocha9769
    @annarocha9769 2 роки тому +1

    Thank you sooooo much!!

  • @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 Рік тому +1

      Set-Executionpolicy -scope CurrentUser Unrestricted {Run this in ur vs cord terminal after that activate ur visual enveronment will work...try this..}

    • @atharvapurohit3585
      @atharvapurohit3585 10 місяців тому

      still didn't work
      @@Samirkhan.0_Official

    • @atharvapurohit3585
      @atharvapurohit3585 10 місяців тому

      env\Scripts\activate (without .bat)

  • @k.k1544
    @k.k1544 10 місяців тому

    When I run virtualenv env..... Getting an error virtualenv is not cmdl......😢😢😢 how can I fix it

  • @rakoczipiroska5632
    @rakoczipiroska5632 2 роки тому +1

    Thank you for this video. It was easy to understand.😊

  • @techideasnz
    @techideasnz Рік тому

    Note the use of cmd terminal not powershell in the video

  • @jackhealy2341
    @jackhealy2341 Рік тому +1

    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?

  • @amanrohilla6659
    @amanrohilla6659 8 місяців тому

    bro i installed the flask but vs code is showing module not found what the problem plesase resolve this

  • @AnushaRaj-e1w
    @AnushaRaj-e1w 5 місяців тому +1

    Thankuu sir

  • @HetShah-i2x
    @HetShah-i2x Рік тому

    activate.bat is not working in pc what should i do and i'm using windows 10

  • @sandunuhettiarachi5124
    @sandunuhettiarachi5124 2 роки тому +6

    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."

  • @jay3101
    @jay3101 2 роки тому

    i have issues with activating in mac m1
    can you help me out

  • @SakethK-s3r
    @SakethK-s3r Рік тому +1

    Thank you so much

  • @teddyperera8531
    @teddyperera8531 Рік тому

    very useful. thank you.

  • @siddhirajdalvi7917
    @siddhirajdalvi7917 2 роки тому +2

    Thanks boy

  • @AmitKumar-vn5rp
    @AmitKumar-vn5rp 2 роки тому +1

    Sir please tell me how we activate env
    env/scripts/activate.

  • @nicolastrudel9320
    @nicolastrudel9320 2 роки тому +1

    When i try to pip install it says command file not found ?

  • @sri.c2661
    @sri.c2661 3 місяці тому

    After that i get an name error like flask is not defined

  • @capturedart0
    @capturedart0 7 місяців тому

    Thanks, please make a login page with the help of flask and html

  • @LilGam3r1
    @LilGam3r1 3 роки тому +3

    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  3 роки тому

      Hey, please make sure to set the flask environment variable correctly, thank you !

    • @Minn-v6r
      @Minn-v6r 2 роки тому +1

      Same problem occurred can u say how u resolved it

    • @LilGam3r1
      @LilGam3r1 2 роки тому +1

      @@Minn-v6r im not sure i havent tried since then, I changed IDE too.

    • @gouthams222
      @gouthams222 2 роки тому +3

      Have you tried saving the current file(Ctrl+S) and do flask run

    • @ashkraze
      @ashkraze 2 роки тому

      @@gouthams222 Thank you so much bhaii

  • @vilassonje7540
    @vilassonje7540 2 роки тому +3

    thanks

  • @ritikaranjan7606
    @ritikaranjan7606 2 роки тому +1

    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>

  • @techseeker_d2971
    @techseeker_d2971 2 роки тому +1

    Thanks a lot

  • @motorvehicles9348
    @motorvehicles9348 3 роки тому +1

    Thank you 💞

    • @codevoid
      @codevoid  3 роки тому +1

      Glad the content could help !

    • @motorvehicles9348
      @motorvehicles9348 3 роки тому +1

      @@codevoid definitely it helped me .. ❤️

  • @nivethak_3658
    @nivethak_3658 2 роки тому

    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

  • @arunchandra5255
    @arunchandra5255 2 роки тому +1

    Thank you.

  • @SimaManiyevaDEV
    @SimaManiyevaDEV 14 днів тому

    THANKS!!

  • @Souvik148
    @Souvik148 3 роки тому

    After executing flask, auto update is not working in case the code changes.

  • @nguyentuannghia2043
    @nguyentuannghia2043 3 роки тому +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 3 роки тому

      yes me too, please help

    • @nguyentuannghia2043
      @nguyentuannghia2043 3 роки тому +4

      @@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 3 роки тому

      @@nguyentuannghia2043 thank you so muchhh

    • @shikhasuman8300
      @shikhasuman8300 2 роки тому +1

      @@nguyentuannghia2043 thank u

    • @tamannasharma742
      @tamannasharma742 Рік тому

      Can u tell me how u solved it ..same problem is occurring with me

  • @comradejames451
    @comradejames451 2 роки тому +1

    good

  • @sachinbhagat1483
    @sachinbhagat1483 Рік тому

    Thank you!

  • @santiagoviana2671
    @santiagoviana2671 3 роки тому

    Hi everyone, I am writting "env/bin/activate" from osx and Terminal return me that: "env/bin/activate: command not found"

  • @shashankmn1663
    @shashankmn1663 3 роки тому +2

    Thank you

    • @codevoid
      @codevoid  3 роки тому +1

      Glad you found the content helpful !

  • @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!

  • @sinasaber246
    @sinasaber246 Рік тому

    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?

  • @samuca15151
    @samuca15151 2 роки тому +1

    Thanks.

    • @codevoid
      @codevoid  2 роки тому

      Glad I could help !

  • @sandhiyathirugnanaselvam2018
    @sandhiyathirugnanaselvam2018 2 роки тому

    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..?

  • @ghomellerpido2
    @ghomellerpido2 2 роки тому

    why I can't enter in virtual environment?

  • @mayankchandan5704
    @mayankchandan5704 2 роки тому

    Great !

  • @josevannel4819
    @josevannel4819 11 місяців тому

    Flask is not opening web browser it is running in kali terminal 😢

  • @bilalahsan678
    @bilalahsan678 3 роки тому

    How to debug step by step in vs code, you are just using command line and not showing vs features

  • @brejeamar2225
    @brejeamar2225 2 роки тому

    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 8 місяців тому

      Same problem, please help me too

  • @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

  • @swethanooka896
    @swethanooka896 2 роки тому

    Getting error like 'pip' is not recognised as the name of cmdlet

    • @artshavi
      @artshavi 2 роки тому

      i got the same error

  • @mhdvlogs2130
    @mhdvlogs2130 9 місяців тому +1

    .\env\Scripts\activate ===try this in last step

  • @datumtecnologia
    @datumtecnologia 2 роки тому +1

    Thanks

    • @codevoid
      @codevoid  2 роки тому

      You’re welcome !

  • @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

  • @abinavsivakumar2633
    @abinavsivakumar2633 Рік тому

    thanks bro

  • @s_wrdk
    @s_wrdk 2 роки тому

    Hello, it doesn't work for me..

  • @divyajamgala6089
    @divyajamgala6089 Рік тому

    Flask run command is not working properly

  • @VaibhaviHumnabadkar-x8o
    @VaibhaviHumnabadkar-x8o 6 місяців тому

    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?

  • @ff0226
    @ff0226 2 роки тому

    I got the error "python is not found"

  • @christianleblanc881
    @christianleblanc881 Рік тому

    2.00 press ctrl?

  • @2ammoodhindi110
    @2ammoodhindi110 Рік тому

    why pip is not working

  • @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.