Python Flask Tutorial: Full-Featured Web App Part 1 – Getting Started

///Python Flask Tutorial: Full-Featured Web App Part 1 – Getting Started

Python Flask Tutorial: Full-Featured Web App Part 1 – Getting Started

FavoriteLoadingAdd to favorites

In this Python Flask Tutorial, we will be learning how to get started using the Flask framework. We will install the necessary packages and get a basic Hello World Application running in our browser. Let’s get started…

The code for this series can be found at:

Django Tutorials to create this same application:

Python Installation:

Virtual Environment Setup:

Sublime Text Setup:

If name equals main explanation:

✅ Support My Channel Through Patreon:

✅ Become a Channel Member:

✅ One-Time Contribution Through PayPal:

✅ Cryptocurrency Donations:
Bitcoin Wallet – 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet – 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet – MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey’s Public Amazon Wishlist

✅ Equipment I Use and Books I Recommend:

▶️ You Can Find Me On:
My Website –
My Second Channel –
Facebook –
Twitter –
Instagram –

#Python #Flask

source

By |2019-09-16T22:51:16+00:00September 16th, 2019|Python Video Tutorials|32 Comments

32 Comments

  1. SY Chen September 16, 2019 at 10:51 pm - Reply

    I really like this playlist and the Django one. Do you have any plan to do the same thing with node.js Express? That would be really helpful. Thank you so much.

  2. Paweł Tarsała September 16, 2019 at 10:51 pm - Reply

    In Jupyter notebook:
    app.run(debug=True, use_reloader=False)
    if someone has some strange error

  3. TheBasicProgramming September 16, 2019 at 10:51 pm - Reply

    am unable to download the video.. any one to help out

  4. Kishore Andra September 16, 2019 at 10:51 pm - Reply

    Hey Corey, may I know how to import a class of different flask project in the present flask project and those are in different local disc's….??

  5. Ayush Agarwal September 16, 2019 at 10:51 pm - Reply

    It's really awesome that you build the exact here as you build in the Django tutorials, so a person can easily compare both of these.

  6. TheFuneralPyre September 16, 2019 at 10:51 pm - Reply

    If you get the ''flask' is not recognized as an internal or external command," message, you need to set up your user variables in Windows. You can actually still get it to run by typing 'py -m flask run', but if you want to just type 'flask run' like the example: Go to System Properties > Advanced > Environment Variables, click NEW under User Variables, then copy the location of your Python 3 .exe and save.

  7. Arun Saw September 16, 2019 at 10:51 pm - Reply

    Thanks man for this tutorial ❤️

  8. Abishek Balaji September 16, 2019 at 10:51 pm - Reply

    Amazing work!! These videos are of high standards and hopefully you make tutorials on various other topics as well😀

  9. Miloš Bogdanović September 16, 2019 at 10:51 pm - Reply

    now after finished the course with coding it's time to listen the same course all over.

  10. SANDIP PATEL September 16, 2019 at 10:51 pm - Reply

    amazing sir!!

  11. JOS BEXERR September 16, 2019 at 10:51 pm - Reply

    Gracias mister Corey…. excelente exposición…..

  12. Projections September 16, 2019 at 10:51 pm - Reply
  13. G B September 16, 2019 at 10:51 pm - Reply

    it seems like the Flask homepage has a different "Hello World" code now…

    '''
    from flask import Flask, escape, request

    app = Flask(__name__)

    @app.route('/')
    def hello():
    name = request.args.get("name", "World")
    return f'Hello, {escape(name)}!'
    '''

  14. Slash Caret September 16, 2019 at 10:51 pm - Reply

    can anyone please explain me why we have to pass _name_ while instantiating Flask App–> app = Flask(__name__) at 5:45 ???

  15. Erick G. September 16, 2019 at 10:51 pm - Reply

    How did you change your filename at the bottom of the screen around 4:47 ?

  16. Ryan Young September 16, 2019 at 10:51 pm - Reply

    Is your virtual environment named flaskblog? What folder is it installed in?

  17. Christian Puchner September 16, 2019 at 10:51 pm - Reply

    Instant subscription – great video!

  18. Filip Greń September 16, 2019 at 10:51 pm - Reply

    at 7:58 if You're using Windows PowerShell (not CMD), use $env:FLASK_APP = "hello.py", same with debug – not 'set' but '$env:'

  19. Hyma Vathi September 16, 2019 at 10:51 pm - Reply

    Can you please help me to run your example in docker container ? Also planning to do below steps : 1. Read a file name and search word from user in python and print the lines which had that word user given as a service. 2 Run this service inside docker container 3. We have to call this service from angular front-end page ….Are these steps are possible ? Any help appreciated….

  20. David Boateng Adams September 16, 2019 at 10:51 pm - Reply

    PS C:Users3lw3utDocumentsPython ScriptsFlask_Blog> set FLASK_APP=flaskblog.py

    PS C:Users3lw3utDocumentsPython ScriptsFlask_Blog> 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]

    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.

    Corey, this is the error i actually get…

  21. David Boateng Adams September 16, 2019 at 10:51 pm - Reply

    the set command actually does not work for me
    any help

  22. David Boateng Adams September 16, 2019 at 10:51 pm - Reply

    set FLASK_BLOG = flaskblog.py

    doesnt work for me

  23. Garima Jain September 16, 2019 at 10:51 pm - Reply

    Thank you for this!

  24. Dineshn19 September 16, 2019 at 10:51 pm - Reply

    Thanks for the good video. Will continue watching the entire play list.

  25. K2000 September 16, 2019 at 10:51 pm - Reply

    if anybody got a problem with set FLASK_APP = flaskblog.py, try this: $env:FLASK_APP = "flaskblog.py"

  26. Mirror1 Mirage0 September 16, 2019 at 10:51 pm - Reply

    Packed with knowledge. Real value. Thanks a ton @Corey Schafer

  27. Will Roberts September 16, 2019 at 10:51 pm - Reply

    Corey… you are a bad a$$. Love it!!

  28. C018Y September 16, 2019 at 10:51 pm - Reply

    ‘Flask’ is not recognized as an internal or external command, operable program or batch file

    Anyone know how to fix?

  29. Jhonathan Maia September 16, 2019 at 10:51 pm - Reply

    Hi Corey, first of all thanks for your videos, they're awesome!! Now… Do you have/recommend/would be interested in making one tutorial talking about user access control in Python/Flask? i.g: Let's say we have an application with 4 menus Users, Reports, Salaries, Contracts, and we have an Admin that has access to perform CRUD to all menus, a Lawyer that can only access the "Contracts" menu and perform CRUD there, and finally a "Lawyer-Assistant" that can only access the "Contracts" menu but cannot delete any contracts. To give these access to users an Admin would select the user under "User" menu and go to let's say "Permissions" where there would be a list of all menus (with check boxes) in the system…. Hope I could express myself. If you could at least talk about the concepts involved into something like this in a video I would be already be grateful. Thanks a lot 😀

  30. Manish Gupta September 16, 2019 at 10:51 pm - Reply

    I cracked the interview as fresher in Django. I have self-taught my self. Most of the credit goes to you @corey schafer. Now, back to here, to learn flask.

  31. Khayla September 16, 2019 at 10:51 pm - Reply

    If anyone one windows has an issue where the server won't start, it helped me to run the server as a module. so instead of just 'flask run', type 'python -m flask run' and it worked.

  32. sajid hussain September 16, 2019 at 10:51 pm - Reply

    can you please give me the SRS of this project ?

Leave A Comment

*