ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
cool thanks a lot bro you are a life saver
no problemo :)
how to create 2 table in same database ?
Use db.create_all() and that will create all the tables for the corresponding classes with db.Model
@@devguyahnaf thx ya
@@devguyahnaf may I know how about the when I wanted to add new or remove column in the database?
@@johnchong9660 You can use flask migrate. Give a quick google search.
You should use Jinja2 templates and url_for when creating templates in Flask. You did not use it in this video.
I personally didn't like templates back then (due to lack of experience). But if I were to recreate this tutorial again, I would definitely use it.
nice sir
First to comment
If anyone is having trouble to crate the datebase just add the following code after you have created the class Post()with app.app_context(): db.create_all()
Yes, now you need an app context
cool thanks a lot bro you are a life saver
no problemo :)
how to create 2 table in same database ?
Use db.create_all() and that will create all the tables for the corresponding classes with db.Model
@@devguyahnaf thx ya
@@devguyahnaf may I know how about the when I wanted to add new or remove column in the database?
@@johnchong9660 You can use flask migrate. Give a quick google search.
You should use Jinja2 templates and url_for when creating templates in Flask. You did not use it in this video.
I personally didn't like templates back then (due to lack of experience). But if I were to recreate this tutorial again, I would definitely use it.
nice sir
First to comment
If anyone is having trouble to crate the datebase just add the following code after you have created the class Post()
with app.app_context():
db.create_all()
Yes, now you need an app context