Skip to content

Commit bc2cbc4

Browse files
committed
Mention Python3 flask-based templates in docs
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
1 parent 92d5939 commit bc2cbc4

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/cli/templates.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ func Handle() {
169169
}
170170
```
171171

172-
173172
Within your handler.go:
174173

175174
```golang
@@ -241,6 +240,18 @@ You can then enable CGO with a build-arg:
241240
faas-cli build --build-arg CGO_ENABLED=1
242241
```
243242

243+
#### Python 3 templates
244+
245+
For production use, serving machine learning models, and high-traffic functions, it's advisable to use the newer templates built with flask and the OpenFaaS of-watchdog.
246+
247+
See the [python-flask-template repo](https://github.com/openfaas-incubator/python-flask-template) for the following templates:
248+
249+
* python27-flask
250+
* python3-flask
251+
* python3-flask-debian
252+
* python3-http
253+
* python3-http-debian
254+
244255
#### Python 3 (classic template)
245256

246257
To create a Python function named `pycon` type in:

0 commit comments

Comments
 (0)