summaryrefslogtreecommitdiffstats
path: root/README.md
blob: 17876c2ca838642e628e543815bdc94b013e4bae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# flask-tutorial

https://flask.palletsprojects.com/en/3.0.x/tutorial

## Installation

```bash
python -m venv .venv
source .venv/bin/activate

pip install -r requirements.txt
flask --app flaskr run --debug
```

## Learning resources

* https://flask.palletsprojects.com/en/3.0.x/#user-s-guide
* https://sqlite.org/lang.html

Concepts:

* flask.g: Store data.  Unique for each request
* flask.current_app:  Link to Flask app
* flask.open_resource:  From app package path
* request: HTML request???
* Factory function > registered functions and blueprints.
* Blueprint > views & other code