This repo is a clone of https://github.com/miguelgrinberg/flasky
Flask uses context globals to allow functions to treat certain variables as global, but in reality these variables are thread-specific. The context globals are:
Variable | Context | Description |
---|---|---|
current_app | Application | The application instance for active application |
g | Application | Temporary storage variable PER application instance. Reset per request |
request | Request | Content of request sent by client |
session | Request | User session, stores values between requests |