Deploy Django Project on Digital Ocean

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024

ความคิดเห็น • 57

  • @CodeWithMuh
    @CodeWithMuh  9 หลายเดือนก่อน +2

    Connect with me on LinkedIn: www.linkedin.com/in/muhammad-rashid-daha

  • @funwidpython3266
    @funwidpython3266 ปีที่แล้ว +1

    Thank You sir. with your tutorial I finally deployed my application

    • @CodeWithMuh
      @CodeWithMuh  ปีที่แล้ว

      Glad to hear. Welcome

    • @funwidpython3266
      @funwidpython3266 ปีที่แล้ว

      @@CodeWithMuh Hello sir django server not able to server uploaded mmedia when i change DEBUG = False what should i do

  • @richap2131
    @richap2131 4 หลายเดือนก่อน +1

    Thanks a lot sir i was able to host my website today on droplet just because of your amazing guidance

    • @CodeWithMuh
      @CodeWithMuh  4 หลายเดือนก่อน

      I am happy to hear. 💥

  • @rmnvishal
    @rmnvishal 9 หลายเดือนก่อน +1

    The whitenoise library really solved my problem of serving static files! Thanks!

    • @CodeWithMuh
      @CodeWithMuh  9 หลายเดือนก่อน

      Glad to hear 😊.

  • @nathannyawaya
    @nathannyawaya ปีที่แล้ว +1

    thanks so much, this video was so much helpful though i had so much errors on the way, i kept going back to the video and the blog and finally workd. thanks

  • @seokochin
    @seokochin ปีที่แล้ว +2

    you saved my life bro :)

  • @ahmadumar9387
    @ahmadumar9387 ปีที่แล้ว +1

    wow your content is honey! many many thanks i'm looking exactly for this stuff :)

  • @pierrepugliesi9641
    @pierrepugliesi9641 4 หลายเดือนก่อน +1

    Everything work, You are the boss Much thank you so much bro, you save my ass
    You are doing good work ! keep going please

    • @CodeWithMuh
      @CodeWithMuh  4 หลายเดือนก่อน

      Happy to hear

  • @richu7896
    @richu7896 หลายเดือนก่อน +1

    my media files showing 403 , when i did it in ec2 it was ok for both i followed ur video

    • @CodeWithMuh
      @CodeWithMuh  หลายเดือนก่อน

      @@richu7896 make sure folder path for media fiels are correct.
      You will need to define media in nginx and settings.py

  • @sylvainlys3451
    @sylvainlys3451 ปีที่แล้ว +1

    Thank you very much, what do I do once I have the changes on my repository? And how to run migrations with ngnix ? And how to see log of server on console

  • @dhananjaysingh194
    @dhananjaysingh194 6 วันที่ผ่านมา

    sir , i have create ecommerce api like flipkart using django restframework so which plan is best where deploy my api ?

    • @CodeWithMuh
      @CodeWithMuh  6 วันที่ผ่านมา

      @@dhananjaysingh194 you can use digital ocean

  • @Alick.outdoors
    @Alick.outdoors 3 หลายเดือนก่อน +1

    I am having error 502 bad gateway eish I am struggling Sir 😢

    • @CodeWithMuh
      @CodeWithMuh  3 หลายเดือนก่อน

      Three issues can be. Your app erroe, nginx issue or gunicorn. Make sure these things are correct

  • @sahirjaman10
    @sahirjaman10 5 หลายเดือนก่อน +1

    502 Bad Gateway . and it is not allowing me to access any of the API

    • @CodeWithMuh
      @CodeWithMuh  5 หลายเดือนก่อน

      Check nginx and gunicorn error logs. You will have problem somewhere

    • @sahirjaman10
      @sahirjaman10 5 หลายเดือนก่อน

      @@CodeWithMuh I misspelled the directory name. thanks for the reply brother. Your video really helped. may allah bless you❤️

    • @sahirjaman10
      @sahirjaman10 5 หลายเดือนก่อน

      @@CodeWithMuh brother do you have any video where I can learn how to add github workflow for the deployed server?

    • @CodeWithMuh
      @CodeWithMuh  5 หลายเดือนก่อน

      You can use GitHub actions or Jenkins. Two videos are available on my TH-cam channel

  • @tonyhall4983
    @tonyhall4983 ปีที่แล้ว +1

    This tutorial was awesome. It's unfortunate that I'm getting a 502 Bad Gateway after completing the tutorial though. How would you advice someone debug this issue?

    • @CodeWithMuh
      @CodeWithMuh  ปีที่แล้ว

      Nginx or ports issue. Double check

    • @tonyhall4983
      @tonyhall4983 ปีที่แล้ว

      @@CodeWithMuh well I tried the port connection with telnet your_server_ip 8000 and got this error: telnet: Unable to connect to remote host: Connection refused

  • @seokochin
    @seokochin ปีที่แล้ว +1

    it will be great if you can add a way to add ssl too

    • @CodeWithMuh
      @CodeWithMuh  ปีที่แล้ว

      Ssl video is available at my channel

  • @user-kk9wp3fb8n
    @user-kk9wp3fb8n ปีที่แล้ว +1

    please how did you save on your mac terminal

    • @CodeWithMuh
      @CodeWithMuh  ปีที่แล้ว

      Cmd+x or escape(:wr then :wq)

  • @souleymanekeita6077
    @souleymanekeita6077 7 หลายเดือนก่อน +1

    I'm on windows how I can do that plaese ??

    • @CodeWithMuh
      @CodeWithMuh  7 หลายเดือนก่อน

      Ask your questions with details

    • @souleymanekeita6077
      @souleymanekeita6077 7 หลายเดือนก่อน

      @@CodeWithMuh i use Wiindows as OS and i want to deploy a django project lile you in the video but i see you used a Linux terminal

    • @CodeWithMuh
      @CodeWithMuh  7 หลายเดือนก่อน

      @@souleymanekeita6077 you can try to find if any tutorial using windows

    • @souleymanekeita6077
      @souleymanekeita6077 7 หลายเดือนก่อน +1

      @@CodeWithMuh ok thank you

  • @souleymanekeita6077
    @souleymanekeita6077 7 หลายเดือนก่อน +1

    Please sir how to add a domain name to the ip adress ??

    • @CodeWithMuh
      @CodeWithMuh  7 หลายเดือนก่อน

      Watch my video backend development courses. There is a section related to this at the end.

  • @OctoberYou
    @OctoberYou ปีที่แล้ว +2

    remote: Support for password authentication was removed on August 13, 2021. I got this message when I try to clone

    • @CodeWithMuh
      @CodeWithMuh  ปีที่แล้ว

      You are talking about git?

    • @valerabondarev4013
      @valerabondarev4013 ปีที่แล้ว +2

      go for your git account settings -> developer settings -> tokens -> default tokens (or smth like that) -> and add token. use this token like password when u try to clone your repository

  • @ahmadumar9387
    @ahmadumar9387 ปีที่แล้ว +1

    by the way, do you know how to deploy multiple django apps in one vps? many thanks for future response :)

    • @CodeWithMuh
      @CodeWithMuh  ปีที่แล้ว +1

      Yes, you can do. Reference: michal.karzynski.pl/blog/2013/10/29/serving-multiple-django-applications-with-nginx-gunicorn-supervisor/

    • @ahmadumar9387
      @ahmadumar9387 ปีที่แล้ว

      @@CodeWithMuh thanks it is also possible with aws?

    • @ahmadumar9387
      @ahmadumar9387 ปีที่แล้ว +1

      and would advice me to do this, because i'm a beginner in this field :P

    • @CodeWithMuh
      @CodeWithMuh  ปีที่แล้ว

      I will not recommend

    • @ahmadumar9387
      @ahmadumar9387 ปีที่แล้ว

      @@CodeWithMuh thanks for your advice, are you planning to create an own video to show how to multi app deployment via vps?

  • @Coden69
    @Coden69 ปีที่แล้ว +1

    👍

  • @reyandelacruz1038
    @reyandelacruz1038 ปีที่แล้ว

    how about deployment using
    docker?

    • @CodeWithMuh
      @CodeWithMuh  ปีที่แล้ว

      Yes, we can deploy using docker

    • @mariabufnea7421
      @mariabufnea7421 7 หลายเดือนก่อน +1

      @@CodeWithMuh Please, help us with a video :Digital Ocean, Django and Docker ! 🙏

    • @CodeWithMuh
      @CodeWithMuh  7 หลายเดือนก่อน

      I am going live today with docker deployment