Since HTTP is stateless, we need to track some data across requests with a session.
We will continue to work from the
app.py file from the
sched directory and the
sessionobject, which behaves like a Python dictionary, and persists automatically across requests. You can, in your Flask application code:
from flask import session # ... in a request ... session['spam'] = 'eggs' # ... in another request ... spam = session.get('spam') # 'eggs'
Flask Flask-Login Flask-Script Flask-SQLAlchemy WTForms
$ pip install -r requirements.txt