Here you can find the tuto for Flask, copied in its integrality.
There is just an improvement to automatically create the database.
This has been done for the module Flask on slapos. Just clone this repository in your software.cfg, in the [git-user] section.