▶️ Watch Entire Flask Friday Playlist ✅ Subscribe To My UA-cam Channel: bit.ly/3ig2eJn bit.ly/2IGzvOR ▶️ See More At: ✅ Join My Facebook Group: Codemy.com bit.ly/2GFmOBz ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt! Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN ▶️ Get The Code bit.ly/2L1jBl5
I had been banging my head against the wall for hours trying to host my web app on Heroku. Thank you so much for putting up this video....I just wish I had found it earlier!
Hey! John, How's it going for you? I am a student and basically do not have a credit card yet, because I don't earn enough. What can be an option to this?
Great video - if you have your app.py in a sub folder like /backend how do you point to that correctly in the Procfile if that is in the root folder? Is it something like "web: gunicorn app:backend/app"?
How would you handle using dotenv for managing keys for API's? Can't upload the env file to git so how do we make a env file available to the heroku app?
Hi man! Nice video. But when I in get bash on heroku login press enter it just freezes and nothing hapening? Why is that? Anyone guys have this problem?
Heroku new update states that they do not offer Postgres free of charge anymore. What are your thoughts? Should I go with one of their plans or look for something else? (P.S. I am new to Heroku and I don't know what to expect)
My db is in my __init__ file within the website folder. app.py is outside the website folder. How do I import the db in that case? "from website import db" isnt working.
I'm getting the error dash.exceptions.DependencyException: Error loading dependency. "dash" is not a registered library. can you help? i've reinstalled dash and the problem continues...
Thanks a lot for you video! Super helpful. What do I do if I want to populate the database on the webserver? For example there are some pre-existing users that should be ready to query when the app is created. In local environment I do session.add and session.commit in the flask shell but not sure where to do it in webhosting. Could you please give some guidance?
hi I really like this video! Now I am working on my side. One question I am wondering is, if we already have a database in sqlite, how can we use this current database instead of creating a new one?
Hello, John! I have a problem. In the terminal all looked good, but when I went to browser I got an error message under my Heroki app url: "Application error An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command heroku logs --tail". How to fix it?
Hello, I'm trying to deploy a complex flask app, build with factory pattern and I have some problem due to the interpreter paths. Locally from PyCharm IDE, I can set them manually, but how can I do something similar from Heroku, or maybe from code? Thank you in advance!!!
hello there. Thank you for the video. I have a question about db.create_all(). My db is initiated under /website/__init__.py file. I tried "from website import db" then db.create_all(). Then I get this Runtimeerror: No application found. Can you please help? thank you!
@@Codemycom I followed the steps in the video exactly. The only difference is that my app and db is created under /website/__init__.py file instead of the app.py file under the main folder.
have you figured it out? if you haven't yet and if you followed another tutorial for a notes website, you don't need to do the db.create_all() at all. once you've deployed it to heroku, the db is already created and set up. the issue is with sqlalchemy only able to handle postgresql
I have the same issue. I too modulated the project so its split into small er files rather than the entire app in one app.py file. It should be possible but I cant figure it out, if you find the solution please share it. Thanks!
SQLAlchemy 1.4 doesn't work directly with Heroku. You will get the error, "sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:postgres" when you try to create the database. The easiest solution is to pip uninstall SQLAlchemy 1.4 and redo with a pip install SQLAlchemy ==1.3.23
i am having a flask python app with cv2 dlib libraries in it from ML models. But there is application error and its showing different errors everytime. Is this the same process for such (ML - dlib - opencv) based apps as well? And since it is having dlib and tensorflow the slug size exceeds as well
If you want to deploy DL,CNN model I suggest you go for paid plans or AWS. I have faced this issue with Pytorch, use CPU packages only; Optimise imports, and use lower version packages. This gelped me reduce my slug size from 1.1GB to 480MB. But the real issue is when it loads up. My App RAM usage was 1.4 GB and it was impossible to optimise it. It will crash and exit in heroku free version. Hope this helps.
Hello sir actually i am using sql database with python using flask ,I am getting bad request The browser (or proxy) sent a request that this server could not understand. Can you please help with this pleaseee....😥
Hi John! I came across your website and I’m looking to join. I want to eventually become a ROR developer, but first want to learn Ruby before getting into ROR. I am just wondering which Ruby course of yours you’d recommend me to start with - Intro to Ruby Programming or Ruby Programming For Everyone?
All are explain about heroku only. How to deploy in cpanel with database please make a video i tried so many times but i ended up with irrelevant tutorials. I hope i will get solution here
Sir John, Make a tutorial video that show *how to push/collect the byte stream of any image which is set as Pixmap Image of any label in PyQt5 Programs to database like postgress using just python*
HELLO SIR, I AM MAKING A SERIOUS PROJECT ON FLASK..RIGHT NOW GOT STUCK ON A PROBLEM . CAN YOU PLEASE HELP ME. I HAVE TRIED MANY( A LOT) PEOPLE TO COMMUNICATE MY PROBLEM BUT NONE OF THEM CAN'T SOLVE THAT PROBLEM. THE PROBLEM IS VERY LITTLE BUT AS A LEARNER I DON'T KNOW HOW TO MAKE IT RIGHT. SIR IT WOULD BE GLAD IF YOU HELP ME
▶️ Watch Entire Flask Friday Playlist ✅ Subscribe To My UA-cam Channel:
bit.ly/3ig2eJn bit.ly/2IGzvOR
▶️ See More At: ✅ Join My Facebook Group:
Codemy.com bit.ly/2GFmOBz
▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt!
Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN
▶️ Get The Code
bit.ly/2L1jBl5
I had been banging my head against the wall for hours trying to host my web app on Heroku. Thank you so much for putting up this video....I just wish I had found it earlier!
Glad you got it sorted out!
This tutorial just did the magic! I've been able to deploy my flask app on heroku, thank you!
Happy to hear it!
Thanks man! I really needed a comprehensive tutorial on hosting a Flask app on heroku. Thank you very much! : )
7:37 is what I've been looking for thank you
Happy to help!
Excellent video…like how you went straight to the point…ne subscriber❤
Thanks!
Your videos are really helpful for my current project... Thanks! It would be cool if you do video on how to create a chat app in Flask website.
Good suggestion :-)
with heroku cancelling the free version a few months ago, which cloud service do you recommend to use?
I couldn't get this to work, but whatever because I saw your video "Heroku Decided To Screw Over All Coding Students!".
Thank you very much for all the series!!
Glad you like them!
Hey! John, How's it going for you?
I am a student and basically do not have a credit card yet, because I don't earn enough. What can be an option to this?
Paypal? Parent's card?
Nice very nice explanation! 😁
Great video - if you have your app.py in a sub folder like /backend how do you point to that correctly in the Procfile if that is in the root folder? Is it something like "web: gunicorn app:backend/app"?
Up
How do I copy all the info from my sqlite db file to the heroku postgres database?
I have one more question.. How to hide your app.config['SECRET_KEY'] when pushing to the GitHub?
You can create a .env file and save the key there then only pass it back when you need it
How would you handle using dotenv for managing keys for API's? Can't upload the env file to git so how do we make a env file available to the heroku app?
Hi man! Nice video.
But when I in get bash on heroku login press enter it just freezes and nothing hapening? Why is that? Anyone guys have this problem?
how i can download git to work git add . in terminal on windows 10
git-scm.com/download
Thank you for the amazing videos!
Very welcome!
Great video thanks!!
Heroku new update states that they do not offer Postgres free of charge anymore. What are your thoughts? Should I go with one of their plans or look for something else? (P.S. I am new to Heroku and I don't know what to expect)
Yes, it's no longer free...I don't yet have a free alternative.
Hi John thsnks for the video, but what if i want to use a domain i bought from say namecheap or godaddy
Go to settings in heroku and enter it there where they ask for it.
Awesome Video. What do I do if I need to update the database on heroku. Can I acess it from my local machine and run ETL routines from it?
Thank you So Much ! really helped me a lot :))))
Happy to hear it!
most of the resources i find are using bash shell. isn't there a way to use powershell on Windows to do these things?
My db is in my __init__ file within the website folder. app.py is outside the website folder. How do I import the db in that case? "from website import db" isnt working.
How do i connect heroku postgresql in django project
this is a flask video
will it work if use mysql not sqlalchemy?
Not without changes
I'm getting the error dash.exceptions.DependencyException: Error loading dependency. "dash" is not a registered library. can you help? i've reinstalled dash and the problem continues...
Thank you, great video!
Welcome!
Thanks a lot for you video! Super helpful. What do I do if I want to populate the database on the webserver? For example there are some pre-existing users that should be ready to query when the app is created. In local environment I do session.add and session.commit in the flask shell but not sure where to do it in webhosting. Could you please give some guidance?
Guess the questions is more about how to copy data from local sqlite database to production heroku postgres db. Would appreciate any help!
Sorry, I don't have any videos on that.
do you have a similar video for flask and mysql?
No, but why would you want to use Mysql?
@@CodemycomHello, i wondering the same question. I always use MySQL, so I would like to use again, Is posible or not? Thanks
it is saying 'from' isnt a bash command, when i try to import app to db, what is wrong?
Why would you ever type in "from" into the bash terminal? I think you forgot to first enter the python shell.
hi I really like this video! Now I am working on my side. One question I am wondering is, if we already have a database in sqlite, how can we use this current database instead of creating a new one?
I don't have any videos on that, and you definitely wouldn't ever want to use sqlite for production
Can an Web app, using Phyton, flask, database, and ionosphere eb hosting
can it be what?
Hello, John! I have a problem. In the terminal all looked good, but when I went to browser I got an error message under my Heroki app url: "Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail". How to fix it?
Do what the error says. From the terminal: heroku logs --tail
Thank you. Appreciated :)
Sure thing
Hello, I'm trying to deploy a complex flask app, build with factory pattern and I have some problem due to the interpreter paths. Locally from PyCharm IDE, I can set them manually, but how can I do something similar from Heroku, or maybe from code? Thank you in advance!!!
No clue, I don't use Pycharm and recommend that no one else use it either...this is just another reason why.
hello there. Thank you for the video. I have a question about db.create_all(). My db is initiated under /website/__init__.py file. I tried "from website import db" then db.create_all(). Then I get this Runtimeerror: No application found. Can you please help? thank you!
what did you do differently from the video?
@@Codemycom I followed the steps in the video exactly. The only difference is that my app and db is created under /website/__init__.py file instead of the app.py file under the main folder.
@@icecube721 then you didn't follow the steps in the video exactly
have you figured it out? if you haven't yet and if you followed another tutorial for a notes website, you don't need to do the db.create_all() at all. once you've deployed it to heroku, the db is already created and set up. the issue is with sqlalchemy only able to handle postgresql
I have the same issue. I too modulated the project so its split into small er files rather than the entire app in one app.py file. It should be possible but I cant figure it out, if you find the solution please share it. Thanks!
SQLAlchemy 1.4 doesn't work directly with Heroku. You will get the error, "sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:postgres" when you try to create the database. The easiest solution is to pip uninstall SQLAlchemy 1.4 and redo with a pip install SQLAlchemy ==1.3.23
To fix this, rename postgres:// in the URL to postgresql://
it's not working for me
@@wnywebdevelopment8757 just for anyone else: this suggestion to change the name to ‘postgresql’ in app worked for me. Thank you!
@@MetaFisica. me too :(
i am having a flask python app with cv2 dlib libraries in it from ML models. But there is application error and its showing different errors everytime. Is this the same process for such (ML - dlib - opencv) based apps as well?
And since it is having dlib and tensorflow the slug size exceeds as well
Should be. Give it a try and see
If you want to deploy DL,CNN model I suggest you go for paid plans or AWS. I have faced this issue with Pytorch, use CPU packages only; Optimise imports, and use lower version packages. This gelped me reduce my slug size from 1.1GB to 480MB. But the real issue is when it loads up. My App RAM usage was 1.4 GB and it was impossible to optimise it. It will crash and exit in heroku free version. Hope this helps.
@@rutwikpatil8491 thanks. I will try
can we visit the website sir?
Of course, why couldn't you?
Is it fully free? Can i still use it if i dont have credit card?
No
Hello sir actually i am using sql database with python using flask ,I am getting bad request The browser (or proxy) sent a request that this server could not understand. Can you please help with this pleaseee....😥
You'll have to google the error
Hi John! I came across your website and I’m looking to join. I want to eventually become a ROR developer, but first want to learn Ruby before getting into ROR. I am just wondering which Ruby course of yours you’d recommend me to start with - Intro to Ruby Programming or Ruby Programming For Everyone?
Either one, they're very similar. Try Ruby for Everyone.
Great one !!
Thanks!
You are from which country
United States
*Sir, please teach Go programming language. And host its website on heroku. It very easy and very very speed (go is as speed as C++).*
Might do that at some point
All are explain about heroku only. How to deploy in cpanel with database please make a video i tried so many times but i ended up with irrelevant tutorials. I hope i will get solution here
Sir John,
Make a tutorial video that show *how to push/collect the byte stream of any image which is set as Pixmap Image of any label in PyQt5 Programs to database like postgress using just python*
Uh, no lol
lol yes
@@K3vyB say crearly
Thanks a lot!
HELLO SIR, I AM MAKING A SERIOUS PROJECT ON FLASK..RIGHT NOW GOT STUCK ON A PROBLEM .
CAN YOU PLEASE HELP ME. I HAVE TRIED MANY( A LOT) PEOPLE TO COMMUNICATE MY PROBLEM BUT NONE OF THEM CAN'T SOLVE THAT PROBLEM. THE PROBLEM IS VERY LITTLE BUT AS A LEARNER I DON'T KNOW HOW TO MAKE IT RIGHT.
SIR IT WOULD BE GLAD IF YOU HELP ME
Upload videos on sql database
Already have a course on sql database at Codemy.com
42
If your server doesn't work you my need to change the db url postgres:// to postgresql://.