Friend, I don't even speak your language, I'm using Google Translate just to say thanks. Because I had problems with the blueprint with sqlchemy and your video helped me perfectly, thank you very much!
Amazing videos as usual! You should create a video on testing Flask apps with pytest and how to use logging with flask so when it crashes you get an email and know exactly what went wrong. These tutorials will make a great contribution to your already awesome collection.
Dammm bro, you are really good at explainings things and going to the point, and why certain thing goes where it goes, not just typing it and let the viewer figure it out, thanks a lot for that.
Thank you so much sir for this awesome tutorial. I was struggling with it since a while now. Finally google recommended your video and my issues are resolved. A huge thanks ❤️
Thanks for sharing this. It was very helpful. I did get stuck however at the steps at 7:00 (python statements to run create_all(app). Turns out that flask-sqlalchemy was updated to remove that method which accepts the application as a parameter. To do this now, you need to call with app.app_context(): db.create_all()" The rest of it worked just fine. Thanks again for putting this together!
I put it in the create_app() function towards the bottom of the function. It’s in the top level __init__.py file. Hope that’s helpful. Sorry for the delay
Finally! Came across Uber Chad bro on this topic, I've been sipping on soy boys for too long trying to wrap my head around this and you nailed it; thx Flask brah.
Great tutorial! Nice and easy ton understand explanation! Please make more about flask application structure and celery. Why do usually people use flask context to use with celery? what are the advantages?
Great. Could you Just increase The font size? another question..where would you put your business logic classes? some tutorials save it to "entities" others leave it with the database models.
Amazing video! Can you please make a tutorial on making models that have 3 tables user, planes, hangers and all connected to each other. Lets say a user has a plane that is stored in a hanger he also has and the hanger has the data of the plane that this specific user has? Very complicated. Thanks
you could make folders like models , routes and forms but what i usually do is create blueprint for every part of my app example if i am making a e-commerce website (Which i am procrastinating at) i would create blueprint for 1 user 1.1 orders 2 product
Your tutorials are amazing and I love it. Just one issue with this tutorial is that I get a Error: Failed to find Flask application or factory in module 'myproject'. Use 'myproject:name' to specify one.
I don't have any plans to make any videos like that for my UA-cam channel, but I am working on a course right now that will cover something along those lines.
hi, can you make a video for encrypting the form data of login page when it getting posted, before it reaches the endpoint. so when it get posted password cannot be seen in the INSPECT window "Networks" in flask without using JavaScript. Appreciate for the great video contents made by you.
You're probably not going to find a framework in Flask that is on the level of DRF due to differences in the approaches and communities of the frameworks. Check out Flask-RESTX though: github.com/python-restx/flask-restx
Hello sir, Is is possible to see all the data from "row = Users.query.all()" , by just using " return row ". I don't want to print the data in html using loop, just want to see all data as soon as possible, like php. And thanks ...(I'm from India, always watch your videos)
I'm sure this is possible in several ways, but I can't think of one that is as simple as PHP. The problem is when you are using SQLAlchemy, you get SQLAlchemy objects in return, so you have to loop over them to see the results. In PHP, you are getting the results directly from the database, so you can show them immediately.
hey man, i've been watching your videos lately, and honestly they've been great so far. I am working on a project and im not quite familiar with the flask environment and folder structure, hence i just wanted to ask you why don't you have an app.py and whats the reason behind using the under init as the root file or the starter of the application, like are there any benefits to that approach. I hope im making sense in what im saying edit: another question i have, so when i followed along, it seems that flask migrate wasn't able to find my models, until i imported them in the init file under the migrate.init app line. And now i have the issue of circular imports as i have an association table and its causing an error.
Another great tutorial, thanks. Do you have a video on using parameters vs variables in routes? I'm curious as to which is best for which situation. For example I can have /myurl/ and pass in a name like /myurl/marty or I can use params so pass in /myurl/?name=marty and pick it up with name = request.args.get('name'). Is there a reason to use one over the other?
I prefer using the query string (?name=...) because it makes the URLs more discoverable. As your app grows, it helps to be able to take a URL and find out which function is handling that URL. With arguments, in the URL, this becomes harder, especially for other people who will look at your code.
sir please can you save my life and explain everything about flask context i'm struggling for 1 week now i did not understand anything , and why we should use with app.app_context()... in our __init__.py
That's exactly how I started years ago. Those few days that you code start to add up over time, and eventually you might be more motivated to spend more time programming.
Friend, I don't even speak your language, I'm using Google Translate just to say thanks. Because I had problems with the blueprint with sqlchemy and your video helped me perfectly, thank you very much!
sir, Ive been searching the whole internet and this is exactly what Ive been looking for.... Thanks a lot for creating such a amazing video
Glad the video helped!
@@prettyprinted ❤️
Very good and helpful video! This addressed exactly the issues I was having with circular imports.
Thank you!
Glad it helped you!
Thanks dude. I don't even wanna know how much I've wasted time for trying to solve this alone. This was an answer all to my problems. Cheers!
You taught me how to use flask
Amazing videos as usual!
You should create a video on testing Flask apps with pytest and how to use logging with flask so when it crashes you get an email and know exactly what went wrong.
These tutorials will make a great contribution to your already awesome collection.
Your tutorials on Flask are amazing! I am going to have to save up my pennies so that I can use your mentoring services. Great video!
Dammm bro, you are really good at explainings things and going to the point, and why certain thing goes where it goes, not just typing it and let the viewer figure it out, thanks a lot for that.
Soo clean
Thank you so much sir for this awesome tutorial. I was struggling with it since a while now. Finally google recommended your video and my issues are resolved. A huge thanks ❤️
You are especially good at these python tutorials
Was Looking for File Directory Method. Thank You!!!!
Thanks for sharing this. It was very helpful. I did get stuck however at the steps at 7:00 (python statements to run create_all(app). Turns out that flask-sqlalchemy was updated to remove that method which accepts the application as a parameter. To do this now, you need to call
with app.app_context():
db.create_all()"
The rest of it worked just fine. Thanks again for putting this together!
Hello.can you please tell me more details about this bug? Where and when should I input those code you mentioned above? Thanks!
@@kelvinyeung3394 still waiting on this ;)
Any solution ?
I put it in the create_app() function towards the bottom of the function. It’s in the top level __init__.py file. Hope that’s helpful. Sorry for the delay
Thank you ! I still get an error, but the database is created !
Man , was just searching for this .
Finally! Came across Uber Chad bro on this topic, I've been sipping on soy boys for too long trying to wrap my head around this and you nailed it; thx Flask brah.
Thank you so much for your video, you've saved my nick my dear
Thank u so much. It really helps me.
Very good explanation. Thanks keep it up brother.
Man, you're a genius!
Great video! Came looking here to solve this issue and this video is perfect, can I buy you a coffee?
Awesome video! i have been waiting for this.
very nice video, really helped me
Still saving lives a year later
Exactly what I needed. Thank you!
Awesome video as always!! Just as a comment, the audio is a bit low but nothing that putting headphones wont solve. Thanks for the great content!
Great tutorial! Nice and easy ton understand explanation!
Please make more about flask application structure and celery.
Why do usually people use flask context to use with celery? what are the advantages?
Great video thanks for the input!
Great. Could you Just increase The font size?
another question..where would you put your business logic classes? some tutorials save it to "entities" others leave it with the database models.
Awesome sir, I got my solution.... Thanks a lot
Happy to help
Solid tutorials man!
Subscribed! Which flask app hosting service would you recommend I use?
Amazing video! Can you please make a tutorial on making models that have 3 tables user, planes, hangers and all connected to each other. Lets say a user has a plane that is stored in a hanger he also has and the hanger has the data of the plane that this specific user has? Very complicated. Thanks
Check out my one-to-many relationships and one-to-one relationships videos.
Very good tutorial
Awesome! There is something that I can return an entrie list to the client side?
Dude you are a G!
you could make folders like models , routes and forms
but what i usually do is create blueprint for every part of my app
example if i am making a e-commerce website (Which i am procrastinating at)
i would create blueprint for
1 user
1.1 orders
2 product
Yup that works as well. It's similar to the default Django approach.
you are awesome, i have to finish my project until tomorrow and this helped me a lot
Glad I could help!
how much I thank you, You are the best :)
great video, this is fire
Execellent video, thanks🤙🏾🤙🏾
Glad you liked it!
Thanks for this video.
You're welcome. Thanks for watching!
How can we extend flask-SQLAlchemy to use some more customised alembic backed services, example snowflake?
Your tutorials are amazing and I love it. Just one issue with this tutorial is that I get a Error: Failed to find Flask application or factory in module 'myproject'. Use 'myproject:name' to specify one.
I am using python3.11 on an ubuntu jammy os.
THANK YOU !!!!
Thank you for this
Thanks for watching!
Are you gonna make videos to database modeling with sqlalchemy and relationship between tables?
I don't have any plans to make any videos like that for my UA-cam channel, but I am working on a course right now that will cover something along those lines.
@@prettyprinted I am enrolled in your class to flask for beginner in the website, its so cool
You can do that by adding an import to the models under the models/__init__.py
hi, can you make a video for encrypting the form data of login page when it getting posted, before it reaches the endpoint. so when it get posted password cannot be seen in the INSPECT window "Networks" in flask without using JavaScript.
Appreciate for the great video contents made by you.
Can I use SQLMODEL?
Can u suggest best framework for Flask for creating Restful apis just like Django have DRF?
You're probably not going to find a framework in Flask that is on the level of DRF due to differences in the approaches and communities of the frameworks. Check out Flask-RESTX though: github.com/python-restx/flask-restx
Thanks!!!!
Thanks
Concise!
Thanks for watching!
i have error of models could not be resolved 'how to solve this error' even when m trying to install model error occured
What do you mean by install model?
Can someone help. What if I have to use app.config['SOMETHING] inside routes ?
i dont understand how you made flask run work
Hello sir, Is is possible to see all the data from "row = Users.query.all()" , by just using " return row ". I don't want to print the data in html using loop, just want to see all data as soon as possible, like php. And thanks ...(I'm from India, always watch your videos)
I'm sure this is possible in several ways, but I can't think of one that is as simple as PHP. The problem is when you are using SQLAlchemy, you get SQLAlchemy objects in return, so you have to loop over them to see the results. In PHP, you are getting the results directly from the database, so you can show them immediately.
muchas gracias!!!
Thanks for watching!
thanku!!
I feel like title "How to create flask factory app with extensions" would be more descriptive title, nonetheless thank you!
hey man, i've been watching your videos lately, and honestly they've been great so far. I am working on a project and im not quite familiar with the flask environment and folder structure, hence i just wanted to ask you why don't you have an app.py and whats the reason behind using the under init as the root file or the starter of the application, like are there any benefits to that approach. I hope im making sense in what im saying
edit: another question i have, so when i followed along, it seems that flask migrate wasn't able to find my models, until i imported them in the init file under the migrate.init app line. And now i have the issue of circular imports as i have an association table and its causing an error.
amazing to watch whole video than discover nothings work on windows
Switch to Windows Subsystem for Linux
Flask is so frustrating 😩
Django life was better :)
This is such a bad example of structuring a Flask application.
Another great tutorial, thanks. Do you have a video on using parameters vs variables in routes? I'm curious as to which is best for which situation. For example I can have /myurl/ and pass in a name like /myurl/marty or I can use params so pass in /myurl/?name=marty and pick it up with name = request.args.get('name'). Is there a reason to use one over the other?
Check flask-marshmallow
I prefer using the query string (?name=...) because it makes the URLs more discoverable. As your app grows, it helps to be able to take a URL and find out which function is handling that URL. With arguments, in the URL, this becomes harder, especially for other people who will look at your code.
sir please can you save my life and explain everything about flask context i'm struggling for 1 week now i did not understand anything , and why we should use with app.app_context()... in our __init__.py
This has not worked for me. When I enter from ------ import db. I am met with ImportError: No module named flask
you need to pip install flask
@@thegringlemingler276 I had flask installed but I was in the wrong conda environment at the time.. woops.
I’m so lazy, I keep stopping to program for a week then retry again for a few days then quit again. 😭😭😭
That's exactly how I started years ago. Those few days that you code start to add up over time, and eventually you might be more motivated to spend more time programming.
@@prettyprinted thanks Pretty Printer
Thank you very much! You helped me.