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_

Комментарии • 30

  • @abrotheryourbrother3429
    @abrotheryourbrother3429 17 дней назад +1

    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.

    • @the_proton_guy
      @the_proton_guy  17 дней назад +1

      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

  • @divineigbinoba4506
    @divineigbinoba4506 3 месяца назад +1

    Dude, you're the best, super detailed. Thanks Boss, all the best.

  • @mydear9797
    @mydear9797 Месяц назад +1

    Thank you so much. It's very helpful video.

  • @nessiekariuki3258
    @nessiekariuki3258 3 месяца назад

    Hey, your video was of great help. I was able to deploy. Thanks!

  • @harishragunathan4013
    @harishragunathan4013 Месяц назад +1

    Bro how to add static files is it possible to add???

    • @the_proton_guy
      @the_proton_guy  Месяц назад

      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

  • @josephs8912
    @josephs8912 3 месяца назад +1

    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.

    • @the_proton_guy
      @the_proton_guy  3 месяца назад

      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

    • @josephs8912
      @josephs8912 3 месяца назад

      ​​@@the_proton_guyThank you so much you. I will try it out.🙏🏼

  • @gambomaster
    @gambomaster 4 месяца назад

    Thanks 👍

  • @nitinpilkhwal4986
    @nitinpilkhwal4986 18 дней назад +1

    I am getting this error
    django.core.exceptions.ImproperlyConfigured: WSGI application 'finance_project.wsgi.application' could not be loaded; Error importing module.

    • @the_proton_guy
      @the_proton_guy  18 дней назад

      Make sure the your project folder bane is the name you pass into the start command

  • @Zero-nh4ke
    @Zero-nh4ke Месяц назад +1

    Render is pretty costly 😞

    • @the_proton_guy
      @the_proton_guy  Месяц назад

      Yes it is, they have free plans though

    • @Zero-nh4ke
      @Zero-nh4ke Месяц назад +1

      @@the_proton_guy no I’m talking about production

    • @the_proton_guy
      @the_proton_guy  Месяц назад

      @Zero-nh4ke true. Their cheapest plan is 7$/month I think

  • @ashikca5158
    @ashikca5158 3 месяца назад

    How to configure static files correctly using whitenoise

    • @the_proton_guy
      @the_proton_guy  3 месяца назад +2

      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

    • @ashikca5158
      @ashikca5158 3 месяца назад

      Thank u sir ​@@the_proton_guy

  • @adrianskelton9
    @adrianskelton9 8 дней назад +1

    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.

    • @the_proton_guy
      @the_proton_guy  8 дней назад

      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