Deploy Django Project & Postgresql Database to Render for Free | 2024
HTML-код
- Опубликовано: 10 сен 2024
- In this tutorial, I'll guide you through the process of deploying a Django project to Render, a powerful cloud platform for hosting web applications. You'll learn step-by-step how to set up your Django project, configure environment variables securely using python-decouple, and deploy it to Render with automatic deployments. By the end of this video, you'll have your Django application up and running on the web, ready for users to access. Let's get started
******* Socials *******
Discord: / discord
Patreon: / theprotonguy
Linkedin: / ayodeji-adesola-15392a22b
Instagram: / the_proton_guy
Telegram channel: t.me/sO6ZFOaia...
Twitter: / ayodejiadesola_
Awesome job! Though I've never liked Django for a day but was mandated to develop a small app with it. Now you've given me a good reason to add Django to my tools. The deployment on Render was a breeze due to your tutorial. Thanks a lot brother. i truly appreciate your work. A new subscriber for you with brotherly love.
Aw, thank you for your kind words. I am glad I was able to help with your deployment and also giving you a good reason to stick with Django
Dude, you're the best, super detailed. Thanks Boss, all the best.
Glad I could help 🎉🎉
Thank you so much. It's very helpful video.
You are welcome 🎉
Hey, your video was of great help. I was able to deploy. Thanks!
Glad I could help 🎉
Bro how to add static files is it possible to add???
Yes of course. You can add the static files to your project. You can learn how to setup static files for deployment with whitenoise below:
ruclips.net/video/OeywgMArAGM/видео.htmlsi=-PJuRIlLgV2AL6ln
Thank you for this video. 🙏🏼
I will like to ask, how can I move my local progresql data to render? If you have a video on that kindly point me to it. Thank you once again.
You can’t move your database there but perhaps you can move the data. There’s a package called Django import export that can help to do this. Check it below:
ruclips.net/video/DIr1wYjTM64/видео.htmlsi=qznJoFf_Dsp13pp1
@@the_proton_guyThank you so much you. I will try it out.🙏🏼
Thanks 👍
You’re welcome!
I am getting this error
django.core.exceptions.ImproperlyConfigured: WSGI application 'finance_project.wsgi.application' could not be loaded; Error importing module.
Make sure the your project folder bane is the name you pass into the start command
Render is pretty costly 😞
Yes it is, they have free plans though
@@the_proton_guy no I’m talking about production
@Zero-nh4ke true. Their cheapest plan is 7$/month I think
How to configure static files correctly using whitenoise
Hi, I have a separate video where I talked about serving static files with whitenoise in production. You can check it out here:
Serving Static Files in Production with whitenoise in Django
ruclips.net/video/OeywgMArAGM/видео.html
Thank u sir @@the_proton_guy
Thanks for the awesome tuturial. Unfortunately I keep getting this error on deployment...
==> Running 'gunicorn trashsundays.wsgi:application'
bash: line 1: gunicorn: command not found.
You have to add gunicorn to your requirement.txt file.
You need to do this because render runs your Django project using gunicorn. After you add it to your requirements.txt file, push the change to GitHub and let it redeploy. The error should be gone after that