How to Deploy a Django App and Postgres Database to Render

  Рет қаралды 30,225

Pretty Printed

Pretty Printed

Жыл бұрын

In this video, I will show you how to deploy a Django app and a Postgres data to the Render service. render.com
Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted.com/coaching
Get the code I wrote in this video: prettyprinted.com/l/waW
To install Django 4.0 and greater, create an environment variable on your dashboard called PYTHON_VERSION and set the value to 3.11.4 (or whatever the latest version of Python is).
Twitter: / pretty_printed
Github: github.com/prettyprinted

Пікірлер: 81
@prettyprinted
@prettyprinted Жыл бұрын
To install Django 4.0 and greater, create an environment variable on your dashboard called PYTHON_VERSION and set the value to 3.11.4 (or whatever the latest version of Python is).
@manishkumarmali95
@manishkumarmali95 10 ай бұрын
i am face server error (500) so how can resolve this
@yahialinus1851
@yahialinus1851 5 ай бұрын
what about Django projects with static and media files it seems to only deploy the HTML without any styling
@niteshrawat576
@niteshrawat576 13 күн бұрын
@@yahialinus1851 Have you tried collectstatic?
@jakin314
@jakin314 9 ай бұрын
I've been following your channel for 4 years now and have learned a lot from you. Thank you for the great work you do.
@bethuelthipe-moukangwe7786
@bethuelthipe-moukangwe7786 4 ай бұрын
You assisted me to be able to use Render for my first time. You made it easy for me to understand. Even the section of creating database and connecting it using postgres.
@eduardolucas391
@eduardolucas391 8 ай бұрын
As usual, another brilliant material being shared with the community. Congratulations for you unvalueable work.
@anunsawonv
@anunsawonv 5 ай бұрын
It's my first time deploying a django app and your video helped a lot. Thank you so much!
@manny7662
@manny7662 8 ай бұрын
what if I want to connect a Postgres database with content already in it?
@Felipe-ib9cx
@Felipe-ib9cx 9 ай бұрын
You helped me a lot to understand these settings. Thank you so much
@AhmedSayed-wu9wu
@AhmedSayed-wu9wu 6 ай бұрын
Great video!. Thank you so much you helped alot, I've been searching for a way to add an exisitng postgres database to my django app and I couldn't do it until i watched this video, I just needed to create a postgres instance on Render then use DBeaver to export the exsiting database on my local machine and import it to the external postgres instance and it worked like a charm.
@brayangarzon7732
@brayangarzon7732 10 ай бұрын
How to configure static files?
@sagartamang0000
@sagartamang0000 10 ай бұрын
Wow, man, just deployed my first django app. Thanks alot!
@shafiulsabbir7245
@shafiulsabbir7245 4 ай бұрын
Thanks a lot bro. Its working fine. You have removed a lot of pressures from my head. Thanks a lot once again.
@chiedozieehirim5659
@chiedozieehirim5659 2 ай бұрын
Thanks a lot. This was exactly what I needed to deploy my django project
@ffzz007
@ffzz007 8 ай бұрын
Why my css is not working u after i uploaded on Render?
@divyajeetpala6205
@divyajeetpala6205 3 ай бұрын
Great one man! Really helpful!
@phenomenal_py
@phenomenal_py 6 ай бұрын
Thank you so much it was very useful for me
@gonmore
@gonmore 5 ай бұрын
nice tutorial, the best one for render
@overwrite-techopinions4365
@overwrite-techopinions4365 5 ай бұрын
It really helped a lot thank you so much
@hopesain5065
@hopesain5065 8 ай бұрын
How do you guys configure disks like for media files on render?
@bharratgehlot
@bharratgehlot 25 күн бұрын
thankyou to you i successfully deployed my django app
@tunahantatli
@tunahantatli 10 ай бұрын
Everything is in this video. Thank you My friend. 😉❤💯🖖🖖🖖
@MagnusAnand
@MagnusAnand 2 ай бұрын
Great video!!!! It was cool to show the errors 💪💪
@JordannGeorge
@JordannGeorge Ай бұрын
thanks! this was helpful
@kennyetti4398
@kennyetti4398 11 ай бұрын
Very Helpful Video❤❤❤
@kidsAnimation_network
@kidsAnimation_network 4 ай бұрын
I normally come back here each time i want to deploy my django apps. Moving from sqlite to postgres is made easier with this video
@alexmuia
@alexmuia 11 ай бұрын
Thank you so much for this!!!
@prettyprinted
@prettyprinted 11 ай бұрын
You're welcome! Thanks for watching.
@brayanquiroz7706
@brayanquiroz7706 5 ай бұрын
thanks bro, i really appreciate it
@soumavadas1400
@soumavadas1400 3 ай бұрын
Uploaded the project on Github but the JS , CSS are not working
@danielolusesi776
@danielolusesi776 5 ай бұрын
Hi this really helped me deploy my app to render but the issue i have now is with my media folder how do i also handle that on render because after deployment my image and pdf file added to the system
@jmcontrerass
@jmcontrerass Ай бұрын
muy aclarador! gracias!
@arewatv1446
@arewatv1446 7 ай бұрын
I deployed the backend branch and render keep saying unable to find requirements.txt and upgrade pip but my pip is upgraded
@VamshiKumar-vk2sd
@VamshiKumar-vk2sd 2 ай бұрын
Thank you very much..! I want to know how pricing will works in render. Please let me know
@thepropollo9157
@thepropollo9157 10 ай бұрын
do you know how to deploy in render but with an images app pliz help
@mlamintamba
@mlamintamba Жыл бұрын
Can you please show how to deploy frontend ReactJS and backend Django
@TechnoSan09
@TechnoSan09 5 ай бұрын
best django deployment video please could you do postgresql
@vamsikumar6457
@vamsikumar6457 4 ай бұрын
How to configure static files?? I have used some static files, they are not coming after deployment. Please respond to this. Thank you
@alyaaahmed4462
@alyaaahmed4462 2 ай бұрын
Please do you know why i lose my data stored in the database each time i deploy my last commit ?
@corntvn1340
@corntvn1340 6 ай бұрын
Hi, This is a very nice tutorial. However, with this postgres connexion the web app is very slow. Any idea how to speed it up?
@EdwardBudaza
@EdwardBudaza 3 ай бұрын
Thank you for this, was looking for a place to host django app for free!!!!
@mghalichi
@mghalichi Жыл бұрын
Excellent video! How do you set the environment variables so that after you deploy to Render you can still run your app locally to continue to edit going forward?
@prettyprinted
@prettyprinted Жыл бұрын
You can use something like python-dotenv and create a .env that will hold all your environment variables in your development environment.
@Cristian_Cardona
@Cristian_Cardona 2 ай бұрын
Does anyone know why in "import dj_database_url" it appears: Import "dj_database_url" could not be resolved????
@pedroaugusto5995
@pedroaugusto5995 11 ай бұрын
Thanks for the video, but everytime i try, render give the error "ModuleNotFoundError: No module named 'nameofmyapp.wsgi' ". Can you help me?
@jonsnow5253
@jonsnow5253 9 ай бұрын
i have the same problem, have you find a solution?
@pedroaugusto5995
@pedroaugusto5995 9 ай бұрын
@@jonsnow5253 I had two folders with the same name of the app,
@Flavio-zx3iw
@Flavio-zx3iw 8 ай бұрын
@@pedroaugusto5995 But by default, Django already creates these two folders, one containing configuration files and the other being the project's main directory. Did you manage to resolve it by changing the name of any? Sou brasileiro tbm
@TechnoSan09
@TechnoSan09 5 ай бұрын
it's actually nameofproject.wsgi not app name
@vamsikumar6457
@vamsikumar6457 4 ай бұрын
use .wsgi
@leandromore6680
@leandromore6680 4 ай бұрын
top de mais grande professor
@maazshaikh7905
@maazshaikh7905 Ай бұрын
can you also explain how to configure media and static files
@L.ElishaEdgar
@L.ElishaEdgar 6 ай бұрын
I just deployed my project following you but it is just raw HTML with no CSS, how do I add css?
@olaniyigeorge6960
@olaniyigeorge6960 11 ай бұрын
Awesome. I’m still getting the bad request error though. Exactly like the one you got. Even after pasting in the correct url without the like you did. What might be wrong?
@BombTubeYou
@BombTubeYou 10 ай бұрын
Same, I got the disallowed host error at /
@kill_switch_101
@kill_switch_101 28 күн бұрын
tnx alot
@DAVIDE-wr2iu
@DAVIDE-wr2iu Жыл бұрын
Thanks
@JordanLopez_
@JordanLopez_ Жыл бұрын
Thank you bro.. but the static files aren't working, do you have any solution for that please
@prettyprinted
@prettyprinted Жыл бұрын
Do a python manage.py collectstatic in a build script. Here's an example: testdriven.io/blog/django-render/
@roqzyfrosh4737
@roqzyfrosh4737 9 ай бұрын
Thank you very much, i have successfully deployed my app but the images are not showing. pls kindly help thank you
@AYSHATHLUBABA-vp3dw
@AYSHATHLUBABA-vp3dw 5 ай бұрын
did you find any solution for this?
@jhonrhayparreno7220
@jhonrhayparreno7220 3 ай бұрын
how to run via asgi?
@korlasaikiran6912
@korlasaikiran6912 6 ай бұрын
I have deployed it but i am getting 500 server error
@ikemnodebe4307
@ikemnodebe4307 Жыл бұрын
Having to downgrade requirements is really stressful though. I've encountered the problem when trying to host on render for both Flask and Django problems and I just couldn't keep up having to downgrade everytime because it also requires me to downgrade other requirements not only Flask/Django. Anytime I recreate my requirements.txt file everything goes back to latest version and I have to start the process of downgrading before pushing to remote. Now I know I'm not just the only one facing the issue.
@prettyprinted
@prettyprinted Жыл бұрын
Yeah that is really annoying. I'll look into it more to see if there's a fix on Render.
@prettyprinted
@prettyprinted Жыл бұрын
I looked into it, and you simply have to set your Python version in your environment. PYTHON_VERSION as 3.11.4 will allow you to install the latest version of Django.
@ikemnodebe4307
@ikemnodebe4307 Жыл бұрын
Thank you. I'll take note of that
@Sushantkrsky
@Sushantkrsky 2 ай бұрын
It's showing an error that the databases is not defined
@frameff9073
@frameff9073 Жыл бұрын
thank
@generalstep
@generalstep 2 ай бұрын
my styllling not working after deplyoing
@azizbekgulomov21
@azizbekgulomov21 11 ай бұрын
My cmd doesn't work export command, why ?
@manishkumarmali95
@manishkumarmali95 10 ай бұрын
you replace "set" on "export"
@jithingeorge1946
@jithingeorge1946 7 ай бұрын
hi, how do i connect it to pgadmin?
@TechnoSan09
@TechnoSan09 5 ай бұрын
right click servers on left pane, register new server enter all the connection credentials which is present in external url of render's postgresql (he explained)
@japoneon8915
@japoneon8915 Жыл бұрын
From Argentina. I ❤ you dude. Please show how ti deploy telegram python bot
@prettyprinted
@prettyprinted Жыл бұрын
I'll look into that topic. Thanks for the idea.
@dmbrv
@dmbrv Жыл бұрын
mice
Deploy Django Project & Postgresql Database to Render for Free | 2024
31:49
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 82 МЛН
Now THIS is entertainment! 🤣
00:59
America's Got Talent
Рет қаралды 40 МЛН
Опасность фирменной зарядки Apple
00:57
SuperCrastan
Рет қаралды 10 МЛН
The 4 best ways to deploy a Django application
7:01
London App Developer
Рет қаралды 116 М.
I tried 8 different Postgres ORMs
9:46
Beyond Fireship
Рет қаралды 397 М.
Deploy a Django web app to Python Anywhere in 5 Mins [FREE]
9:26
How to Deploy a Flask App and Postgres Database to Render
16:39
Pretty Printed
Рет қаралды 45 М.
How to Dynamically Add Schedules to Celery Beat
15:18
Pretty Printed
Рет қаралды 3,9 М.
Easiest Way To Connect Django To A Postgres Database
7:28
Dennis Ivy
Рет қаралды 76 М.
Deploying Django with Docker Compose, Gunicorn and Nginx
15:59
Django road
Рет қаралды 91 М.
Django Rest Framework for Beginners - Simple CRUD API
14:22
John Watson Rooney
Рет қаралды 48 М.