Deploy a Django web app to a Render live server with PostgreSQL

preview_player
Показать описание
Deploy a Django web app to a Render live server with PostgreSQL

Important links:

Important packages:

Deploying static/media files:

Solve Admin styling problem:

🪧| Video timestamps:

0:00 - Intro
0:05 - Register for a Render account
5:07 - Create a PostgreSQL database on Render
8:19 - Installing important packages
15:29 - Configure our database settings
25:36 - Testing our admin user
27:43 - Important deployment configurations
31:25 - Deploying to Render
43:10 - (Bonus) - Static/media files + admin page styling
44:40 - Add a custom domain name

🧑‍🏫 | Courses:

📑 | Blog:

📢 | Coaching:

💼| Join the Slack community:

❤️ | Support:
Рекомендации по теме
Комментарии
Автор

PLEASE READ on the packages required + static / media files:

Requirements.txt file:

asgiref==3.6.0
dj-database-url==1.2.0
Django==4.1.6
django-environ==0.9.0
gunicorn==20.1.0
psycopg2-binary==2.9.5
sqlparse==0.4.3
tzdata==2022.7

Please note that you will also have to setup your static and media files as well. Here is an example tutorial with Amazon S3:

CloudWithDjango
Автор

I'm gonna recommend this video to my fellow Django devs. Good job! Kindly keep us posted on these Django tutorials.🔥

cotechlevy
Автор

Thank you for your fantastic VDO, it's very easy to follow and makes I better understand, it's help me a lot, also make I understand the render services as well. Please keep going, I love the style that you made with the VDO so much.

prapathsuayroop
Автор

Thank you very much for the tutorial. It helped me out a lot, I was so frustrated trying to deploy my django project with a free option that I almost drop it in the recycle bin.

luandesouza
Автор

Truly amazing tutorials. Thank you so much for sharing.

adrianmin
Автор

you really did a great job on this tutorial, just what i was looking for. Thankyou

qnjstex
Автор

It's really a great and helpful for any kinds of developer. If you are facing a great problem to deploy django app, you can follow this tutorial...It is easy to understand.. Thank you Sir..

MdRafi-gxbk
Автор

u are perfect ty for thi clear presentation

zaniolotimur
Автор

What am amazing tutorial! Thank you, sir! After Heroku's free tier demise I've been stuck in limbo trying to figure out a replacement, but eventually just got overwhelmed. Now I'm definitely going to try Render and watch some other deployment videos from your channel.

Quick questions though: it would be nice if you mentioned some basic limitation of the free plan, e.g. does your app sleep every 30 min? Is there uptime hours limit (like the dynos on Heroku)?

LegionLeague
Автор

I need to ask this sir, i have deployed my django application + postgresql and i have model with image and some description and view it on the page and when I add and object it os completely fine everything is displayed but after maybe 30 mins, my images are gone but not the descriptions. Now I have to delete all the objects ang add it all again but will also disappear later. What might be the problem?

janing
Автор

Hi Sir. Your videos have truly been a lifesaver. I am a beginner and at my workplace I have to deploy a django application that I am working on. My database has no writes because we don't collect any user data and there are no forms. Do I have to use a Postgres database. I have been reading online that for production, use postgres and not sqlite because sqlite can get corrupted. I was just wondering what I should do because my job uses AWS so I don't think I could use Render.

If you have any videos for deploying django with postgres database on aws, that would be very helpful.

razorhxh
Автор

looks very well thanks for this hack :D

ahmadumar
Автор

what to do if already have existing database

janing
Автор

I have a unrelated question, I have a FileField when it returned it comes as a path not as a URL(API endpoint) it happens before and after deployment . I hope you get what I mean. Thank you.

ahmedzakaria
Автор

Loving your tutorials. I was wondering if you could do a video on deploying Django with Django-Q and Redis to Railway. I already have a Postgres DB on Railway and never deployed an app before and it seems overwhelming. Do I need to dockerize the app? Thanks!

MrValVet
Автор

Thanks for this video. Please when using the new database settings in my existing project, my previous django-admin is no longer available.

chimex
Автор

Thank you! I deployed my first django app😢....

orcofficialyoutube
Автор

Do you know why I lose my data stored in the database each time i reload the page or deploy a last commit?

alyaaahmed
Автор

Thanks for the video, but everytime i try, render give the error "ModuleNotFoundError: No module named 'nameofmyapp.wsgi' ". Can you help me?

pedroaugusto
Автор

Thanks for the video, but everytime i try, render give the error "ModuleNotFoundError: No module named 'nameofmyapp.wsgi' ". Can you help me? give mw a proper answer.

aswink