python 3.11.0
click==8.1.3
colorama==0.4.6
Flask==2.2.2
flask-paginate==2022.1.8
itsdangerous==2.1.2
Jinja2==3.1.2
MarkupSafe==2.1.1
Werkzeug==2.2.2
flask --app main init-db
CREATE TABLE IF NOT EXISTS post(
id INTEGER PRIMARY KEY AUTOINCREMENT,
created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
title TEXT NOT NULL,
body TEXT NOT NULL
);
flask --app main run
/
|---/bloglist
| |---/page/<page>
|---/blogpost/<id>
|---/about