Production Django, WebSockets, Django Channels 2, Daphne, Nginx, Gunicorn, HTTPS

Поділитися
Вставка
  • Опубліковано 9 січ 2025

КОМЕНТАРІ • 88

  • @saliksheraz6236
    @saliksheraz6236 Рік тому +1

    Thank you soo much, the line at 1:50 is the main reason I watched your whole 2 hours long video and I really really appreciate your video and that line.

  • @CalMeNeva
    @CalMeNeva 3 місяці тому

    It is so unreal how much i've learned in the course of just 3-4 hours watching this video, your channel is a blessing, thank you so much

  • @ilyashevelev9256
    @ilyashevelev9256 2 роки тому +1

    Спасибо большое вам за такой подробный урок. В интернете очень мало подобной информации. Я наконец то разобрался как развернуть вебсокеты! Всего вам хорошего, продолжайте делать такие полезные видео.

  • @adityapushkar
    @adityapushkar 3 роки тому

    hey dude, this amazing video is not appearing on the search result that's why it has very few views...it takes hours to find this video. Appreciate your work thankyou

  • @mohammadisn3091
    @mohammadisn3091 11 місяців тому

    Thank you so much for your course. I had so much trouble with my websocket in production, this was a life saver.

  • @saeedrila
    @saeedrila 11 місяців тому

    Hey Mitch, Thanks for the much detailed tutorial. I was having issue with daphne, I could correct and now able to run the chat app in production server.

  • @ultrasardine
    @ultrasardine 3 роки тому +1

    7:56 "dupididupididah", best expression ever

  • @alexsazo9359
    @alexsazo9359 3 роки тому +2

    Thanks for the tutorial! Was sooooo useful! I just was looking for the part how to use daphne in production, but all the tutorial was very useful. Thanks again.

    • @eddietalon7006
      @eddietalon7006 3 роки тому

      you all probably dont give a shit but does any of you know of a way to get back into an instagram account?
      I was stupid lost the account password. I would appreciate any assistance you can give me

    • @aceroyal5833
      @aceroyal5833 3 роки тому

      @Eddie Talon instablaster =)

    • @eddietalon7006
      @eddietalon7006 3 роки тому

      @Ace Royal I really appreciate your reply. I found the site thru google and im waiting for the hacking stuff atm.
      Seems to take quite some time so I will get back to you later when my account password hopefully is recovered.

    • @eddietalon7006
      @eddietalon7006 3 роки тому

      @Ace Royal It did the trick and I now got access to my account again. I'm so happy:D
      Thanks so much you saved my ass :D

    • @aceroyal5833
      @aceroyal5833 3 роки тому

      @Eddie Talon Happy to help :D

  • @AyazAmlani
    @AyazAmlani 3 роки тому

    amazing tutorial. hands down one of the tougher projects i have worked on but I am learning so much. THANK YOU. i found tons of value in this tutorial

  • @damaroro
    @damaroro 3 роки тому

    man, your video is so high class, I'm shocked i get tons of knowledge for free in this content

  • @prajwalkulkarni1
    @prajwalkulkarni1 4 роки тому +1

    Best tutorial ever. PERIOD. This video is hands down, one of a kind in the whole of the internet. Such details and explanation, much wow👌👌👌. Can't thank you enough 🙏🙏🙏🙏🙏

  • @davidnjoagwuani8184
    @davidnjoagwuani8184 3 роки тому

    This video was very helpful, they are very few articles that talk about deploying a daphne server and u just did a very comprehensive guide about it ... mazel tov👍

  • @tejasmandre3212
    @tejasmandre3212 4 роки тому

    I am searching for this since September 2020.Tried doing tons of things and got screwed every time. And then Mitch to the rescue !! :))

  • @random_internet_things_1
    @random_internet_things_1 9 місяців тому

    Thank you very much for this awesome tutorial video. I used it to setup Django, Channels, Daphne and Redis on AWS EC2 Ubuntu!
    Thanks!

  • @user-tokud
    @user-tokud 2 роки тому +4

    Thank you so much.
    I accomplish deploying my web application owing to you!!☺
    I am Japanese and not so good at English, but I managed to do.
    I couldn't find any good information about Django deploy with channels and Daphne, except for this video.
    I will continue to study Django.

  • @Vogel42
    @Vogel42 Рік тому

    1:49:40 you supposed to let nginx handle SSL termination and serve websockets over wss instead of ws.

  • @leakyroofmedia
    @leakyroofmedia Рік тому

    You are the MAN!! You saved me WEEKS of frustration. Thank you!! 🙏🙏🙏

  • @norbertocammayo2334
    @norbertocammayo2334 3 роки тому

    Your the best Mitch. Keep doing django for us.

  • @kalokola
    @kalokola Рік тому

    Thanks much Mitch. You're the best. Have no words, but thanks much.

  • @adriangrosch3346
    @adriangrosch3346 4 роки тому +5

    You saved my life, bro

    • @codingwithmitch
      @codingwithmitch  4 роки тому +1

      Haha yeah lots to know here lol

    • @developertutorbro5019
      @developertutorbro5019 2 роки тому

      Hi Adrian, You got it running? I am facing some problem. Although, Mitch has done tremendous job to help us, my daphne service is getting failed every time after one successful running.

  • @1.0m44
    @1.0m44 3 роки тому

    thank you mitch very much, you give premium content free

  • @hasibulhasansiju
    @hasibulhasansiju 3 роки тому +1

    Thank you so much for that one line

  • @abilashk3193
    @abilashk3193 3 роки тому +1

    I'm facing an issue while creating daphne.service
    daphne.service: Failed at step CHDIR spawning /home/django/Gymme/venv/bin/python: No such file or directory
    This is the error I'm getting. Can you help me ?

  • @tahmidshovon7665
    @tahmidshovon7665 3 роки тому

    you are a life saver. Forever in debt. 🖤

  • @walidzakaria7904
    @walidzakaria7904 4 роки тому

    This is really super helpful, very great effort :)

  • @faizelahi4147
    @faizelahi4147 4 роки тому

    Amazing explanation and Great Video Thanks alot

  • @grandlibulu3701
    @grandlibulu3701 Рік тому

    Thanks bro can you cover django channels apache2 daphne

  • @muhammedali-v2
    @muhammedali-v2 4 роки тому +1

    thanks man, you are the best

  • @عبدالرحمنايمن-ذ2ي
    @عبدالرحمنايمن-ذ2ي 2 роки тому

    the video is amazing but next time please mention the time for each section
    thanks for this much info

  • @fangle0121
    @fangle0121 4 роки тому +1

    Hi Mitch, thank you so much for the detailed documentation on this topic! I have a weird environment problem though which I can't seem to get through.. I got the error message "django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty." However, the secrete_key has its key being permanently stored as the environment variable.. Echoing it would return the correct value.. but Daphne service can't be started because of this issue.. I also tried to write the environment variable to the daphne.service file...Is there anything else that I can look into? Thank you very much in advance!

    • @BeattapeFactory
      @BeattapeFactory 2 роки тому

      I had the same problem but was luckily able to fix it quickly.
      in your asgi.py file:
      before you import modules from apps that you have created you gotta set the the os.environ.setdefault('DJANGO_SETTINGS_MODULE', f'{config("PROJECT_NAME")}.settings') first.
      So first the settings then the modules. something like this:
      import os
      import django
      from decouple import config
      from channels.routing import get_default_application
      os.environ.setdefault('DJANGO_SETTINGS_MODULE', f'{config("PROJECT_NAME")}.settings')
      django.setup()
      import myapp.routing #this after os.environ.setdef....

  • @legendtony9098
    @legendtony9098 3 роки тому

    I have a problem, websocket is connected but I can not send message from server to client.

  • @zonico5826
    @zonico5826 4 роки тому +1

    Thank you so much, this is amazing!

  • @siya.abc123
    @siya.abc123 3 роки тому

    Amazing, thank you so much bro !

  • @kaanarda1975
    @kaanarda1975 3 роки тому

    Hello, websocket is not working even though I have made all the settings. Do I need to manage rules on the server side? I'm using aws ec2, do I need to install a load balancer? because I have done all the installations in your example and everything works fine but there is no wss connection, I would appreciate if you could give an idea about it.

  • @sakibmalik6956
    @sakibmalik6956 Рік тому

    Thanks sir it is very helpful 🙏🙏🙏

  • @arabboymamadaliyev6565
    @arabboymamadaliyev6565 3 роки тому

    Thanks a lot . It is so useful for me.

  • @jasonwun432
    @jasonwun432 3 роки тому

    to those who can't start on_boot automatically
    [Service]
    ExecStart=/bin/bash /root/boot.sh
    btw, Thank You mitch your tutorial helps a lot! amazing!

    • @AyazAmlani
      @AyazAmlani 3 роки тому

      for some reason I get this error Failed at step EXEC spawning /root/boot.sh: No such file or directory

    • @Askerinoglu06
      @Askerinoglu06 Рік тому

      @@AyazAmlani me too? what should i do?

  • @JonathanArleyMonsalveSalazar
    @JonathanArleyMonsalveSalazar 3 роки тому

    Amaizing... excelent video...

  • @usamashehab9319
    @usamashehab9319 2 роки тому

    if i closed the mobxterm app the server stop immediately

  • @aljon7992
    @aljon7992 4 роки тому +1

    Thanks mitch@

  • @arthurobonwakaji8868
    @arthurobonwakaji8868 4 роки тому +1

    Merci beaucoup, much respect.

  • @freekeys
    @freekeys 4 роки тому +1

    Great 👌 thank you🙏

  • @erinling8908
    @erinling8908 3 роки тому

    Amazing tutorial Mitch. I was wondering: I am creating a web app to host and it's an app with 20 fixed chat rooms, each room constantly having 5 students (so 100 users total) where members of the group can discuss the group project through chat in their respective room. What do you think the pricing for something like this be? I know it's hard to gauge with so little description, but anything will do. I want to know what I'm getting myself into, as a student a 200$ bill for example is a no-go.

  • @engthanoon3889
    @engthanoon3889 Рік тому

    thanks alot you are an angle ❤❤❤❤❤❤❤❤

  • @clockdb389
    @clockdb389 3 роки тому

    thanks mitch

  • @johnnys.f.5196
    @johnnys.f.5196 4 місяці тому

    Thank you man :)

  • @migy220
    @migy220 2 роки тому

    Thank you mitch!...finally able to run websocket on my website.

  • @gangadharinagarjuna2399
    @gangadharinagarjuna2399 3 роки тому

    you help me with dophne

  • @Karimanembah
    @Karimanembah 6 місяців тому

    amazing, thanks

  • @nerdappapan
    @nerdappapan 2 роки тому

    very very helpful

  • @mgmyo7066
    @mgmyo7066 4 роки тому

    hello sir, you are stopped making video in android?

  • @thalapathi.
    @thalapathi. 5 місяців тому

    Kindly,please give the membership or your project Full course project video give i am a poor family background i live in India into the small village

  • @nguyentuyen890
    @nguyentuyen890 2 роки тому

    Thanks you alot!

  • @allianzeinfosoft6592
    @allianzeinfosoft6592 3 роки тому

    Very helpfull

  • @gelsonblumenau
    @gelsonblumenau 4 роки тому +1

    Thanks

  • @BrendanMetcalfe
    @BrendanMetcalfe 4 роки тому

    Cool!

  • @IshwarJangid
    @IshwarJangid 3 роки тому +1

    Nice :)

  • @BeattapeFactory
    @BeattapeFactory 2 роки тому

    youre a fuckin angel man

  • @Lioneldali
    @Lioneldali 4 роки тому

    git is not a command line for github

  • @HienNguyen-xn7tr
    @HienNguyen-xn7tr 4 роки тому +1

    Django unchained

  • @romanbush5164
    @romanbush5164 Рік тому

    Nightmare. Why all this crap? Why it was impossible to show how it is configured through docker compose containers?

  • @thalapathi.
    @thalapathi. 5 місяців тому

    Your real time chat application development i really except but it was many based course project i am studying college so i haven't no money so I real disappointed i followed the all videos

  • @lucaslevigoncalves6272
    @lucaslevigoncalves6272 4 роки тому +1

    Thanks