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 f2cabac commit aed58d0Copy full SHA for aed58d0
template3-docker-compose-flask-nginx-postgres/flask/app/__init__.py
@@ -14,15 +14,19 @@ def create_app(config_name):
14
15
db.init_app(app)
16
17
+ from .models.users import Person
18
+
19
@app.route('/')
20
def index():
- from .models.users import Person
21
+ return 'hello world'
22
23
+ @app.route('/create')
24
+ def create_db():
25
db.create_all()
26
return 'ok'
27
28
@app.route('/max')
29
def insert_max():
30
u = Person('Max')
31
db.session.add(u)
32
db.session.commit()
0 commit comments