If you notice all of the dependency versions are not accepted by render know you are not alone. Remove the `==` and the version number after for each dependency in the requirements.txt file. For example, just leave `Flask` and remove the rest of its version information. I hope this helps and hope that your hosting journey is calmer after resolving this issue.
@@zeddyemy hey,if you can share your LinkedIn or other platform I can share details on that,the response is json data I'm getting it on local host when entering the end point,but not after I deployed on render the error I'm getting is 404.
@@zeddyemy Hey, the response is json data,I'm getting the response on local host when I'm entering the endpoint but after deployed on render on my endpoint I'm not getting the response ,I'm getting an error 404
Such an amazing video! Worked perfectly to make a postgresql database and to also launch my flask app, thanks so much! I did need to watch another video to add my custom domain, but that was easy peasy relative to this, so thanks so much!
I had to swap the start command with 'waitress-serve --port=8000 main:app' (as in using waitress instead of gunicorn). Other than that everything worked thanks.
Oct 18 11:38:42 PM Error: Working outside of application context. Oct 18 11:38:42 PM Oct 18 11:38:42 PM This typically means that you attempted to use functionality that needed Oct 18 11:38:42 PM the current application. To solve this, set up an application context Oct 18 11:38:42 PM with app.app_context(). See the documentation for more information. This error keeps popping up after building I'm not sure how to fix it
thanks for the video , i am unable to connect to Internal Database URL in render it is throwing error , but when i used external one i am able to connect , can you please let help me
Hello there, I was able to deploy my app but now I have issues with the static folder using a persistent disk. I've established an app.static_folder pointing to the mount path but how should I manage the changes made to static files locally? Hope you can help or also make a video covering that stuff. Thanks!
great video. but I can't seem to access the code in the github link in the description. seems the submodule isn't accessible as it is on your other videos
Hi thank u for this! But I got an error "RuntimeError: Either 'SQLALCHEMY_DATABASE_URI' or 'SQLALCHEMY_BINDS' must be set." I've made sure that I used app.config['SQLALCHEMY_DATABASE_URI'], do u know what I should I do? Can I see what is on your extensions.py? Thanks in advance!
Hi. Just a quick question. When you connect to the Database with DBeaver: Database -> Schemas -> Public -> Tables and then you can edit and change information as needed, what exactly does Public mean? Does it mean the database is accessible publicly? With the same setup you used in Render, as long as the User Name and Password are kept private, is the database private? Best
public is the default schema name in postgres. It's available to everyone who has your database credentials. Your database itself won't be accessible unless someone has credentials, so yeah you just need to keep them private.
Really helpful video. I followed the steps exactly and managed to get my we service running. But when I try to write to the database I get an error as below. Any thoughts please ? Web Service Error psycopg2.OperationalError: SSL error: decryption failed or bad record mac Database Error SSL error: decryption failed or bad record mac
@@prettyprinted Hey, Thanks so much for the reply! Big fan and subscriber of your videos. Actually the issue comes about when the External Database connection is using SSL but Render does not have SSL for Internal connections between the Webservice and Database. So I had to add a ?sslmode=disable at the end of the Internal Database URL and it works fine. Hope this helps other viewers as well! Cheers from the UK.
thanks your video really heapled me had some issues with code the and render usings versions of python may be renders free version dont allow new versions of depedencies in requirements.txt file. but finnaly solved issues and my website is live.
If you notice all of the dependency versions are not accepted by render know you are not alone. Remove the `==` and the version number after for each dependency in the requirements.txt file. For example, just leave `Flask` and remove the rest of its version information. I hope this helps and hope that your hosting journey is calmer after resolving this issue.
Did notice.
Thanks
Thank you so much , this commentary helps me a lot
@12shashikha9
What is the expected response, and what do you actually get from the endpoint deployed on render?
An error??
@@zeddyemy hey,if you can share your LinkedIn or other platform I can share details on that,the response is json data I'm getting it on local host when entering the end point,but not after I deployed on render the error I'm getting is 404.
@@zeddyemy Hey, the response is json data,I'm getting the response on local host when I'm entering the endpoint but after deployed on render on my endpoint I'm not getting the response ,I'm getting an error 404
Thank you very much for this video! First flask app is finally live!
I was just researching last night how to transition from SQLite to Postgres. Your content has been a major help for me. Cheers!
Glad I could help. Thanks for watching!
THANK YOU VERY MUCH!!! 😁😁, I'm so happy now after deploying my first flask application on render.
Very illustrative and straight to the point, thank you very much!!
Such an amazing video! Worked perfectly to make a postgresql database and to also launch my flask app, thanks so much! I did need to watch another video to add my custom domain, but that was easy peasy relative to this, so thanks so much!
THANK YOU VERY MUCH!!! The Best video about Render and Database
A clear teaching style, thanks, subbed.
Man, your video has saved me!! hahaha
Thanks a lot buddy, amazing content
I thought of doing this yesterday, I hope they do have a workflow so we can make it a staging server.
One way to make a staging server is to create a separate service that gets deployed from a different branch in your repo.
Thank you very much. I connected to DB on Render. That's really helpful.
Sir you are a fucking living legend. You have no idea for how long have I searched for this. Subscribed!
Incredible video, thanks
Hello, how come we didn't need to use Caddy like in your other video? This one seems way easier to go about deploying a website.
You are THE men!
I had to swap the start command with 'waitress-serve --port=8000 main:app' (as in using waitress instead of gunicorn). Other than that everything worked thanks.
Oct 18 11:38:42 PM Error: Working outside of application context.
Oct 18 11:38:42 PM
Oct 18 11:38:42 PM This typically means that you attempted to use functionality that needed
Oct 18 11:38:42 PM the current application. To solve this, set up an application context
Oct 18 11:38:42 PM with app.app_context(). See the documentation for more information.
This error keeps popping up after building I'm not sure how to fix it
i have stumbled with that problem as well but found the solution, here you go:
from app import app, db
app.app_context().push()
db.create_all()
I used flask Blueprints, so does the deployment will be same or is there any changes when using Blueprints???
thanks for the video , i am unable to connect to Internal Database URL in render it is throwing error , but when i used external one i am able to connect , can you please let help me
What is there in extension. Py can i get the code
Hello there, I was able to deploy my app but now I have issues with the static folder using a persistent disk. I've established an app.static_folder pointing to the mount path but how should I manage the changes made to static files locally? Hope you can help or also make a video covering that stuff. Thanks!
Amazing video. Which hosting service do you recommend for Django apps? (For a person on a budget)
Render works well for Django as well. You can also try the AWS free tier and deploy using one of their services.
Thanks for making this video🤗🤗🤗
Is this for one function? How do I run my entire program?
Great video!
What's your opinion let's say from the experience of using both Render and Pythonanywhere? Like which one do you prefer and why?
One issue I have with render is not having the latest versions of your libs, modules or packages in your reqs.txt file. It's really hassle.
great video. but I can't seem to access the code in the github link in the description. seems the submodule isn't accessible as it is on your other videos
I also don't see it.
Hi thank u for this! But I got an error "RuntimeError: Either 'SQLALCHEMY_DATABASE_URI' or 'SQLALCHEMY_BINDS' must be set." I've made sure that I used app.config['SQLALCHEMY_DATABASE_URI'], do u know what I should I do? Can I see what is on your extensions.py? Thanks in advance!
The free tier is free for how many days ??
Do you have a video for Django?
Hi.
Just a quick question. When you connect to the Database with DBeaver: Database -> Schemas -> Public -> Tables and then you can edit and change information as needed, what exactly does Public mean?
Does it mean the database is accessible publicly? With the same setup you used in Render, as long as the User Name and Password are kept private, is the database private?
Best
public is the default schema name in postgres. It's available to everyone who has your database credentials. Your database itself won't be accessible unless someone has credentials, so yeah you just need to keep them private.
@@prettyprinted Ah right. That makes sense!
Thank you, bro!
I can't see the sample code of your video on github, the folder is empty
How Can i connect my own database to render environment, plZ
Really helpful video. I followed the steps exactly and managed to get my we service running.
But when I try to write to the database I get an error as below. Any thoughts please ?
Web Service Error
psycopg2.OperationalError: SSL error: decryption failed or bad record mac
Database Error
SSL error: decryption failed or bad record mac
I haven't seen that error before. Do you have encrypted data on any of your tables?
@@prettyprinted Hey, Thanks so much for the reply! Big fan and subscriber of your videos.
Actually the issue comes about when the External Database connection is using SSL but Render does not have SSL for Internal connections between the Webservice and Database. So I had to add a ?sslmode=disable at the end of the Internal Database URL and it works fine.
Hope this helps other viewers as well! Cheers from the UK.
@@AlgoTraderOnline That's good to know!
i am usuing sqlite for a data base
do i still need to convet it into postgressql??
You don't need to use Postgres, but sqlite may not work well on Render's filesystem.
How to create tables in render database?
You can do it the same way you do locally. Just use the render database connection on your local machine run either db.create_all() or Flask Migrate.
Is there a way to tell Render to run my application on a certain version of Python? for example in 3.9
Yes - under Settings > Environment > Environment Variables:
Key: PYTHON_VERSION
Value: whatever version*
I've done my flask project with SQLite, will I be able to deploy it on render. Can we deploy SQLite database?
Yeah you should be able to. Just make sure you use a SSD disk when you deploy.
export is set in Windows
thanks your video really heapled me
had some issues with code the and render usings versions of python
may be renders free version dont allow new versions of depedencies in requirements.txt file.
but finnaly solved issues and my website is live.
You can use newer versions. You just have to set the Python version in your environment variables. Thanks for watching!
THANK YOU THANK YOU THANK YOU
great video
Thanks for watching!
what command do I use instead of "export" on windows?
"set" instead of "export"
THANK YOU SO MUCH
thanks you so much, helped me
the process is same on windows too?
I can't on windows
Thank you so much
Excelente video
thank you bro
you are amazing
should've explained how to set it up on windows also I lost myself at the export command which isn't recognized by windows
someone help me how to do it with nodejs
THANKS A LOT MAN U ARE COOL
Thanks for watching!
It uses an older version pf python!. I can not deploy of my own
I am having this same problem....I can't get it to deploy using python 3.10
@@cdb8987 i solved it, you can set the python version in environment variables
what is create_app???? there is nothing called create_app in your entire project? so confusing....
Классно!
but it is a django app