Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My First Flask App #235

Open
DibyashaPanda opened this issue Nov 24, 2020 · 0 comments
Open

My First Flask App #235

DibyashaPanda opened this issue Nov 24, 2020 · 0 comments

Comments

@DibyashaPanda
Copy link

DibyashaPanda commented Nov 24, 2020

FLASK:

  • Flask is a web application framework in python

  • Flask depends on the Jinja template engine and the Werkzeug WSGI toolkit.

Steps to create Flask App:

  1. Start the app building by going to the folder where you want to save code. In my case:
    C:>C:\Usres\HP-PC\Documents\Internship\DevIncept
    C:>C:\Usres\HP-PC\Documents\Internship\DevIncept\mkdir app3
    C:>C:\Usres\HP-PC\Documents\Internship\DevIncept\cd app3

  2. Created a new virtual environment env
    pip install virtualenv
    virtualenv env

  3. Activated the virtual environment
    env\Scripts\activate

  4. Installed the flask package using:
    pip install flask

  5. Written the flask code in python using sublime text as app3.py ([https://github.com/DibyashaPanda/MY-FIRST-Flask-App])

  6. Set the flask app by connecting to app3.py and running it.
    set FLASK_APP=app3.py
    flask run

  7. On running the code and link was provided where the output of the app was displayed in an HTML format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant