Deploy Django and PostgreSQL on Render Cloud for free | 2023 | Render Cloud platform

  Рет қаралды 35,617

swapnil shinde

swapnil shinde

Күн бұрын

Пікірлер: 115
@tylercarter274
@tylercarter274 Жыл бұрын
Cant thank you enough for this video. My bootcamp is all using this to get their first websites deployed. So your helping at least 20 students out. Thanks!
@praffulsharma3646
@praffulsharma3646 Жыл бұрын
for windows user , use "set" instead of "export"
@arjunsreekumar1463
@arjunsreekumar1463 2 ай бұрын
thanakkss
@varunishad
@varunishad 11 ай бұрын
Been so long I have been searching for this. Very well explained. Thanks a ton.
@onlyforu599
@onlyforu599 Жыл бұрын
worked thank you so much ... i have searched and watched lot of videos but only u provide the easy and best way to deploy!
@jacobwilsonmwale1674
@jacobwilsonmwale1674 3 ай бұрын
Thanx for this great and clear explanation. It really helped me on my project👏👏
@shovansundarpaul795
@shovansundarpaul795 6 ай бұрын
Thanks brother, now I host my project successfully on render, I tried many ways but did not worked out, this video is quite helpful.
@karan_gandhi_
@karan_gandhi_ 8 ай бұрын
Usually I don't comment on any video, but brother You've done amazing work. Thank you for amazing video ❤❤❤
@Omkar_J___
@Omkar_J___ Жыл бұрын
great start to 2023. hoping to see more
@ironmanxthor-l1p
@ironmanxthor-l1p Жыл бұрын
bhai i cant explain what im feelinng . im very thank full to you brother.🥳😍🥰
@JadenSmith-pm6fs
@JadenSmith-pm6fs Жыл бұрын
Wow man really helpful video!!
@swapnalibhandare7974
@swapnalibhandare7974 Жыл бұрын
What are steps for dbsqlite database which is default database
@salmaanshaik8492
@salmaanshaik8492 Жыл бұрын
Thanks bro successfully deployed my portfolio website🥰🥰
@swapnilshinde2540
@swapnilshinde2540 Жыл бұрын
glad you liked it
@learningtocode5049
@learningtocode5049 7 ай бұрын
Thanks man! I just deployed a django project
@rohitchakraborty4619
@rohitchakraborty4619 Жыл бұрын
Thank you very much appreciate your hardwork for us fellow noobie developers
@purple3036
@purple3036 Жыл бұрын
It was really helpful, thanks
@jhonncastillo7633
@jhonncastillo7633 Жыл бұрын
You are simply a GOD inside a human body, you are the damn sun. THANK YOU VERY MUCH >3
@Fuadroid
@Fuadroid Жыл бұрын
your video was very helpful thanks very much
@StudiofrogPl
@StudiofrogPl Жыл бұрын
everything fine but i can't coonnect do admin pages, after login i get Server Error (500). Also after submiting data to my form site i get Server Error (500). But i can see main page and other 2 pages. It's strange that you have DEBUG set to True on deployment.
@deepakgidwani3776
@deepakgidwani3776 8 ай бұрын
We r serving static files through django only as we added there url patterns, gunicorn doesn't do that, but web server like nginx can handle that.
@CristianGonzalezBarreto
@CristianGonzalezBarreto Жыл бұрын
Hello, I have a 404 error when showing images from the database saved in the media folder, but it does show me the icons and logos saved in the static folder. what could be the error? Help me please.
@ritamsantra2372
@ritamsantra2372 Жыл бұрын
same problem i'm facing ,did you manage to resolve the prob
@undefinedgamer1537
@undefinedgamer1537 Жыл бұрын
error : "ValueError: No support for 'b'''. We support: cockroach, mssql, mssqlms, mysql, mysql-connector, mysql2, mysqlgis, oracle, oraclegis, pgsql, postgis, postgres, postgresql, redshift, spatialite, sqlite, timescale, timescalegis"
@LtkLucky
@LtkLucky 9 ай бұрын
Make sure this environment variable is correctly set in your environment. If you're running your application locally, you can set it in a .env file and use python-dotenv to load it, or export it directly in your terminal: export DATABASE_URL="postgres://user:password@host:port/dbname"
@Nay_Sp
@Nay_Sp 7 ай бұрын
for me works: DATABASES['default'] = dj_database_url.parse("ur link")
@FluffyBRudy
@FluffyBRudy 4 ай бұрын
maybe your environment variable is not set or spelling mistake. print >>> os.environ.get('DATABASE_URL') it may have return None thats why.
@jose.carlos_carmo
@jose.carlos_carmo Жыл бұрын
Hi Friend, I have an Angular application with webservice in Render with my application I create rooms and generate a code for each room, as when accessing this room in another browser I receive the message below: Failed to load resource: the server responded with a status of 404 () (Page Not Found) . Do you know what might have happened?
@SS-nw6me
@SS-nw6me 7 ай бұрын
Hi brother I need a help in my django project I want to deploy render everything goes well except dlib module is not install well I have a dlib folder I want to create a path to download on render how to make a path for render brother can you help me ?
@keshavsharma3944
@keshavsharma3944 Жыл бұрын
what if i Dont have that internal database which u added link of in environment variable , ??
@manny7662
@manny7662 Жыл бұрын
What if I already have data in my postgres db? Is there a way I can upload that data with the deployed application?
@tanmoysaha4686
@tanmoysaha4686 Жыл бұрын
Thank you. It helped me alot
@hopesain5065
@hopesain5065 Жыл бұрын
How do you guys configure disks like for media files on render?
@nellyhernandez7087
@nellyhernandez7087 Жыл бұрын
Your video is so cool that u dont have any dislikes:)
@swapnilshinde2540
@swapnilshinde2540 Жыл бұрын
🙃Thanks
@dell4559
@dell4559 Жыл бұрын
Can you please help me i have hosted everything correctly but when i upload my image the database is showing my image path but how to retrieve or access that image ? where can i get that image ?
@swapnilshinde2540
@swapnilshinde2540 Жыл бұрын
images and videos are media files and are not stored in database even thought we mention them as field in models. It is uploaded to a folder or resource depending on what you've mentioned in MEDIA_ROOT in settings. Assuming you've used "media/" then a media folder will be created in your code dir in which the images and videos will be uploaded.
@hvsniddin
@hvsniddin 11 ай бұрын
im getting this error while building bash: gunicorn: command not found
@vrajpatel9508
@vrajpatel9508 11 ай бұрын
same error , if solved then please reply me
@hvsniddin
@hvsniddin 11 ай бұрын
@@vrajpatel9508 i dont remember how i fixed it but i guess it was because of the gunicorn package not installed, add it to your requirements.txt and try
@briancore22
@briancore22 Жыл бұрын
it deployed successfully but suddenly an error occurred saying: could not translate host name "dpg-chub4md269vccp3g8itg-a" to address: Name or service not known
@Shiny02
@Shiny02 Жыл бұрын
Thank you man!!!!!🚀🔥🔥🔥
@badrikandikonda3018
@badrikandikonda3018 8 ай бұрын
Can we search it on India as we kept the region as us ?
@sufystyle
@sufystyle Жыл бұрын
I am facing problem settings.DATABASE is improperly configured,please supply the ENGINE value
@swapnilshinde2540
@swapnilshinde2540 Жыл бұрын
This shouldn't happen cause the dj_database_url.parse method will convert your url to configurations including the Engine value that will be specified in the url. check if you'r db url is correct
@neeleshbhadoriya1639
@neeleshbhadoriya1639 Жыл бұрын
Thank you so much bro :)
@jimmycala
@jimmycala 9 ай бұрын
THANKS!!!! It works fine!!!!!!!!
@pysof
@pysof 10 ай бұрын
superuser: what the fuck LOL @8:58
@surielesther
@surielesther Жыл бұрын
Thank you for that!!
@azizbekgulomov21
@azizbekgulomov21 Жыл бұрын
My cmd doesn't work export command, why ?
@swapnilshinde2540
@swapnilshinde2540 Жыл бұрын
export is a linux specific command, for windows you have to use SET
@abyssiniancode3425
@abyssiniancode3425 Жыл бұрын
I have a trained ML model and wanted to host it on render using fastapi ......and I dont have any Idea.....is that possible ?
@swapnilshinde2540
@swapnilshinde2540 Жыл бұрын
Yes you can run pre-trained model, just create a function that takes input and run's the model based on that input and returns the output. then you can call that function in your fast api routes/functions. note that the route will response very late, cause the model in running in sync with the server so it takes time to get output from an AI model, so what you can do is run that AI model function in background using threads. Hope it gives you clarity
@abyssiniancode3425
@abyssiniancode3425 Жыл бұрын
@@swapnilshinde2540 thanks a lot....if its possible can I contact you on ur social media
@swapnilshinde2540
@swapnilshinde2540 Жыл бұрын
@@abyssiniancode3425 twitter.com/a_kraken_head
@ShivamSharma-if1oh
@ShivamSharma-if1oh Жыл бұрын
I'm facing issue I export database url, I'm on windows and it shows export is not recognised as internal or external command
@swapnilshinde2540
@swapnilshinde2540 Жыл бұрын
export cmd is for linux machines. for windows its "set"
@sufystyle
@sufystyle Жыл бұрын
@@swapnilshinde2540 why didn't you tell this in video....😅by the way thank you so much
@surajsanapmusic
@surajsanapmusic Жыл бұрын
👏🏻👏🏻👏🏻 thanks bro
@b1ach
@b1ach Жыл бұрын
Thanks for the video! I'm having issues with the static files none of my .css .js files can be located can you help me out with this issue, Thanks in advanced.
@swapnilshinde2540
@swapnilshinde2540 Жыл бұрын
Hey you have to run python manage.py collectstatic and then push to github repo. cause in settings we've mentioned gunicorn to serve static files from static/ folder. collectstatic command will merge all you django + apps static files in one folder
@b1ach
@b1ach Жыл бұрын
@@swapnilshinde2540 it worked ty very much!
@quangvunguyen2604
@quangvunguyen2604 Жыл бұрын
@@b1ach ,have support python 3.7.1 not
@quangvunguyen2604
@quangvunguyen2604 Жыл бұрын
I use python 3.7.1 does it support, and when I install django without using poetry do not configure env_group will it be installed,what render have poetry ?????????????????
@swapnilshinde2540
@swapnilshinde2540 Жыл бұрын
yes render support all python version, for poetry you can do 2 things, 1. generate requirements from poetry and push to github repo or 2. create a install.sh file in which you mention all the steps from installing poetry to installing requirements using poetry and just replace "python manage.py runserver" with " ./install.sh && python manage.py runserver" in the render configurations
@quangvunguyen2604
@quangvunguyen2604 Жыл бұрын
@@swapnilshinde2540 in the clip you don't use poetry, don't install poetry still deploy django successfully
@swapnilshinde2540
@swapnilshinde2540 Жыл бұрын
@@quangvunguyen2604 ya poetry is just used to manage python dependencies its not necessary to use poetry. use this command to generate requirements.txt from poetry "poetry export --without-hashes --format=requirements.txt > requirements.txt" after this just push to github and you will be good to go.
@quangvunguyen2604
@quangvunguyen2604 Жыл бұрын
@@swapnilshinde2540 I deploy why it says requirements.txt file not found
@quangvunguyen2604
@quangvunguyen2604 Жыл бұрын
@@swapnilshinde2540 I don't need to configure the environment
@quangvunguyen2604
@quangvunguyen2604 Жыл бұрын
what backend no such file of directory
@Cristian_Cardona
@Cristian_Cardona 7 ай бұрын
Does anyone know why in "import dj_database_url" it appears: Import "dj_database_url" could not be resolved
@MdNomanMolla-py5br
@MdNomanMolla-py5br Жыл бұрын
When its deploying... Give an error : No module name 'rest_framework'. Give me solution please.
@swapnilshinde2540
@swapnilshinde2540 Жыл бұрын
This is because you didnt added django-rest-framework in your requirements.txt just do "pip install django-rest-framework" then "pip freeze > requirements.txt" push the code
@TranHuuQuanFPLDNK
@TranHuuQuanFPLDNK Жыл бұрын
i just wonder that my deploy was success.But when i upload a product, it will be deleted after few minutes.Can u tell me about this pls
@swapnilshinde2540
@swapnilshinde2540 Жыл бұрын
Check if you are using postgres db. if you are using sqlite then the db file will be in the same server in which your code is running and these servers shutdown after 1 day or x time thus redeploying your code when they turn live and rolling back to latest commit. Which makes all data of sqlite db file rolling back to latest commit. I'm not sure if this also happens with postgres in render, you can also use other free db services and then connect it with your render server with external uri.
@mr.noname6034
@mr.noname6034 Жыл бұрын
@@swapnilshinde2540 Thanks for ur advice and sorry u about my answer.That the product's image storage in folder will be deleted not all the product.Once again thank u
@faakhirzahid6284
@faakhirzahid6284 Жыл бұрын
render is requiring financing card for postgresql now
@swapnilshinde2540
@swapnilshinde2540 Жыл бұрын
it depends on the region where you are using the service
@powerpower3793
@powerpower3793 Жыл бұрын
Thanks man🤝🙏
@janing06
@janing06 Жыл бұрын
How to use existing postgre database.
@swapnilshinde2540
@swapnilshinde2540 Жыл бұрын
You can connect it using external database URI, you can create one using your host, ip, username and password, this is the standard stackoverflow.com/questions/3582552/what-is-the-format-for-the-postgresql-connection-string-url
@janing06
@janing06 Жыл бұрын
​@@swapnilshinde2540 hello my database is in localhost
@swapnilshinde2540
@swapnilshinde2540 Жыл бұрын
@@janing06 Then you have to do port forwarding the mysql port and add the url as external db url
@KevinMbari
@KevinMbari 7 ай бұрын
How to solve error ..no module named..the name of my app ?
@user-zt9id3px6z
@user-zt9id3px6z 6 ай бұрын
Have u solved this problem ???
@user-zt9id3px6z
@user-zt9id3px6z 6 ай бұрын
Plz tell the solution!!
@ytbook9639
@ytbook9639 Жыл бұрын
hell oI completed all the steps just as you showd but i am getting server error 500 please help me is anyone else getting this error
@swapnilshinde2540
@swapnilshinde2540 Жыл бұрын
Just change debug=True and push the code then you can see the errors properly on the production. You can change it back when everything is working
@ShivamSharma-if1oh
@ShivamSharma-if1oh Жыл бұрын
Can I use 1 database to deploy multiple applications
@swapnilshinde2540
@swapnilshinde2540 Жыл бұрын
yes you can. you just have to add the same db url in every instance and can deploy those instance anywhere you want.
@westlydavid1319
@westlydavid1319 Жыл бұрын
how to connect to render psql database in nodejs
@swapnilshinde2540
@swapnilshinde2540 Жыл бұрын
www.educative.io/answers/how-to-use-a-database-url-parser-in-nodejs
@abhishekranjan7143
@abhishekranjan7143 Жыл бұрын
how to do the same using Mysql database? please help
@swapnilshinde2540
@swapnilshinde2540 Жыл бұрын
Render doesn't provide mysql db's. you can create mysql instance on other cloud platforms and use the external urls as DATABASE_URL
@blackmedalin254
@blackmedalin254 Жыл бұрын
if "?" in path and not url.query: TypeError: a bytes-like object is required, not 'str' ---error code : DATABASES = { 'default': dj_database_url.parse(os.environ.get("DATABASE_URL")) }
Жыл бұрын
Could you solve it?
@onlyforu599
@onlyforu599 Жыл бұрын
DATABASE_URL = "paste the externel db url here" DATABASES = {'default': dj_database_url.config(default=DATABASE_URL)} then your error solved
@Shiny02
@Shiny02 Жыл бұрын
@@onlyforu599 LOVE YOU MAN ❤❤❤❤❤❤❤❤❤❤❤❤
@qhpser
@qhpser Жыл бұрын
thank youuu very muchhhh
@foreveryour11
@foreveryour11 Жыл бұрын
can you please help me with mysql and flask? please :((((
@swapnilshinde2540
@swapnilshinde2540 Жыл бұрын
Sure, you can explain your problem to me or give any contact.
@RahulYadav-ij2gy
@RahulYadav-ij2gy Жыл бұрын
Thank you
@abyssiniancode3425
@abyssiniancode3425 Жыл бұрын
thank u a lot
@kingdomgame1619
@kingdomgame1619 3 ай бұрын
thx bro
How to Deploy a Django App and Postgres Database to Render
20:14
Pretty Printed
Рет қаралды 40 М.
Deploy a Django web app to Vercel [FREE]
18:21
Cloud With Django
Рет қаралды 87 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
DEPLOY DJANGO WEB APP TO VERCEL | POSTGRES | FREE
16:25
TechStream
Рет қаралды 501
How to Deploy a Fullstack Django Web App on Vercel.
25:26
Code With Clinton
Рет қаралды 28 М.
Deploy Django  Project on Render  for free
8:30
BHUWAN PANDEY
Рет қаралды 2,1 М.
Best Platforms to Host Python Apps (for free!!)
9:50
Patrick Loeber
Рет қаралды 137 М.
10 Free SQL DB Hosts
8:48
MesmerTech
Рет қаралды 74 М.
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 313 М.
Deploy your Django App on Render for free | Full Tutorial
21:43
Daton Ayomide
Рет қаралды 365
Deploy a Django web app to a Render live server with PostgreSQL
46:57
Cloud With Django
Рет қаралды 29 М.
Deploy Django Project & Postgresql Database to Render for Free | 2024
31:49
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН