We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec0041f commit 404a05cCopy full SHA for 404a05c
apps/py/ch07_web/wsgi.py
@@ -0,0 +1,2 @@
1
+from guitary.app import app
2
+
apps/py/ch08_db/guitary/app.py
@@ -24,13 +24,18 @@ def guitars(style: str = None):
24
return flask.render_template('guitars.html', guitars=guitar_list)
25
26
27
-def main():
+def configure():
28
session_factory.global_init('guitary.sqlite')
29
session_factory.create_tables()
30
data_loader.load_guitars_if_empty()
31
32
33
+def main():
34
+ configure()
35
app.run(debug=True)
36
37
38
if __name__ == '__main__':
39
main()
40
+else:
41
0 commit comments