We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c069dc commit 70a27c1Copy full SHA for 70a27c1
1 file changed
README.md
@@ -40,6 +40,34 @@ $ python manage.py runserver
40
41
More information? Follow explanatory videos below.
42
43
+## How to execute queries manually?
44
+
45
+Inside on your virtualenv:
46
+```
47
+$ python manage.py shell
48
49
50
+Import db and model:
51
52
+from tvseries.ext import db
53
+from tvseries.core.models import TVSerie
54
55
56
+Bind your session with your application:
57
58
+db.app = app
59
60
61
+Quering example:
62
63
+db.session.query(TVSerie).all()
64
65
66
+If operation is "create", "update" or "delete" dont forget to run commit operation to confirm operation:
67
68
+db.session.commit()
69
70
71
## 1.0 - Flask and the most basic application of the world!
72
73
- See release code: https://github.com/rafaelhenrique/flask_tutorial/tree/1.0
0 commit comments