Skip to content

mjhea0/flask_flow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

  1. Clone
  2. Activate virtualenv
  3. Install dependencies
  4. Run - gunicorn __init__:app -b localhost:8000
  5. Navigate to http://localhost:8000/ in your browser

Structure

├── __init__.py
├── flask_flow_project
│   ├── __init__.py
│   └── views.py
└── requirements.txt

What's happening?

When ran, and you navigate to http://localhost:8000/, you should see the following in your terminal:

outer __init__.py
inner __init__.py
route loaded!
  1. When the server is ran, the outer __init__.py file is loaded, which imports the application instance from /flask_flow_project/__init__.py.
  2. From there the views are imported and when the end user requests the main route, /, a GET request is sent. This is handled by the route handler - @app.route('/') - and a response is sent.

About

looking at flow of a basic flask program

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages