Deploy Django + Channels + Redis + Heroku + Daphne

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

КОМЕНТАРІ • 70

  • @mohammedezzi6096
    @mohammedezzi6096 4 роки тому +2

    Thank you for the channel, it's the most complete channel I know until now with a very high quality tutorial

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

      Thanks Mohammed, will keep it coming out asap.

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

    Your content is awesome you definately deserve more views and subscribers

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

      Hi Nishal, thank you for your kind comment - am just concentrating on making things better, hopefully that will come.

  • @nibinprasad1106
    @nibinprasad1106 2 роки тому +2

    hi,can you give update on the changes in redis and daphine confiuration in 2022

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

    I'm so happy that I can cry. it works. thank you

  • @terminatorification1
    @terminatorification1 4 роки тому +3

    Thank you so much for making such a well-made tutorial!

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

    this channel is a gem 💎

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

    Hello
    I have a small doubt related to channels, but not with the above context. For example, if I have a post model and I created a post and for the user to view the post, they need to either reload the page or we need to redirect them to the list page to view all the posts. What if I want to push the newly created post to the front end or to the client side without having them to reload the page? Can we use channels for that? And if we use channels for that purpose, do we need to rewrite all the codes we wrote in normal views or adding a snippet code like sending a signal when created and running an async function will do the trick?
    Thanks :)

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

      Hiya, hmmm channels in this situation - maybe/kind of. You might want to use it to send the user a notification that a new post has been created, that is probably more appropriate. A general case - if you are looking at a list (as you describe in this scenario) a user would be doing that for all of 2-3 seconds - so it is unlikely they are looking at the posts when the new item pushed to them, so probably better to notify them instead. An alternative would be to use API tech to periodically check for updates - behind the scenes you can have an API request send to the backend to check for update data and return new posts on screen.
      User notifications with channels is a good idea for a tutorial too! Thanks!

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

      @@veryacademy Thank you and hoping to see that tutorial soon 😊

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

    Hi, thanks you. I have a question, how can I do for ssl working ?

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

    I installed the django redis and the sad thing is that it does not work in production as it still renders an error saying localhost:6379 refused i have tried even hardcoding the managed redis but nothing works.

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

    Hi :) What language was used to create GitHub app for desktop? Thank u ;)

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

    very good ♂django master♂

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

    I have followed the tutorial and I am having a problem with this error:
    ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured.
    Can't seem to figure out what's going wrong?

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

    Thank you very much, man!

  • @egichuki
    @egichuki 4 роки тому +2

    Nice content, Will you be doing for HTTPS? (ws/wss)

    • @veryacademy
      @veryacademy  4 роки тому +2

      I can do - but there are no plans just yet

    • @brhh
      @brhh 4 роки тому +2

      @@veryacademy any plans yet?? :)

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

    Dear teacher, could you please make a video on how to build and push Django + Celery image to aws ecr using github actions? Thanks.

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

      Hi Phong, I will add it to my list for sure.

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

    I encountered cannot import default_channels_layer problem not sure what went wrong

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

      Hi Yancheng, sorry its a tricky one to give advise. Just keep trying - once you get it, its straight forward. Break it down if you can - dont do everything at once, just get django first then add channels etc

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

      @@veryacademy Thanks for the instr. Got it to work by creating runtime and upload it to heroku

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

    Thank you .bruh.
    Dony stop
    You shuud have more subs.

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

      I appreciate that, I will keep going!

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

    please who the the previous turorial links ?

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

    Thanks for the awesome vid. I get an error when I try to get the web page:
    django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
    I seem to have done everything correctly and I can't find a way to resolve this issue.

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

      I'm having this issue too, did you ever find a fix?

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

      @@BlueBrendan2000 I'm having the same problem. Did you find a solution?

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

      @@erik1639 I did end up solving it, but I can't remember for the life of me what I did or even the cause of the original problem. If you want, I can send you a screenshot of my settings file and anything else that might help you debug.

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

      @@BlueBrendan2000 Thank you, I already solved it as well. What I needed to do was move the os.environ.setDefault before all the imports only leave import os and import django before it

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

    Thank you so much sir for such kind of a great tutorial. Kindly, can you make video on plain js and react?

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

      you prolly dont care but if you're stoned like me during the covid times then you can watch pretty much all of the new movies on instaflixxer. I've been binge watching with my girlfriend for the last few weeks xD

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

      @Magnus Rayan Yea, have been using Instaflixxer for years myself :D

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

    It would be good to have a new video tutorial on the same topic on how to deploy a django application with channels asgi on a current free platform, such as Koyeb, Railwai, etc.
    Thank you

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

    i want deploy my django channels app on AWS & getting troubleshoot for setting up everything properly can you please make one video to configure the django channels app & secured websocket connection on aws
    please help me this im requesting you please ...

    • @RM-qy7tz
      @RM-qy7tz 11 місяців тому

      did you eventually manage to deploy your app?

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

    great video :D

  • @Michael-xd9ng
    @Michael-xd9ng 4 роки тому

    Nice video... Very explanatory.
    Please I've deployed my django server to Heroku successfully, I'm currently using django rest framework to connect to my mobile app. This works correctly with my local machine, but the deployed server returns a Forbidden (CSRF cookie not set.) error.
    I've checked on the web for a suitable solution but couldn't find any, most were just advising the of csrf_excempt. But I feel there should be a better workaround to that as drf automatically adds it to APIView and api_view
    Please any help will be much appreciated

    • @Michael-xd9ng
      @Michael-xd9ng 4 роки тому

      I already figured it out
      The issue was I was getting the URL wrong, so it was resolved to a "not found" callback (which wasn't exempt from CSRF) and was hence throwing an exception before I could be told that the URL was wrong.
      Thanks by the way

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

      Sorry I couldnt get back to you sooner. Good to hear you got it sorted 👍

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

    I LOVE YOU. THANK YOU SO MUCH FOR THIS VIDEO

  • @JJ-rn9zl
    @JJ-rn9zl 3 роки тому

    Thanks alot

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

    when running collectstatic dryrun noinput, I get 142 static files copied 1 unmodified. I suspect this is what is causing a H14 error when trying to view my successfully deployed app on heroku. I tried SO solutions in vain to fix the H14 error and viewed the docs on heroku to no conclusion.
    Logs show H14 error which leads me believe Procfile has an issue, SO solution says: heroku ps: scale web=1, yields "Couldn't find that process type" yet Procfile is in correct format (not .txt , P uppercase, rest lowercase, root directory). I think its that 1 unmodified file. Would you or anyone else in the comments by any change have any ideas what's going wrong with this H14 error and preventing viewing?

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

      You will experience a h14 when the config isn’t correct - even when force starting the server it still won’t play right. Try making a new app and deploy - watch the deploy if you can for server going down. I found that just making a new heroku app and deploying fixed a similar problem.

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

      @@veryacademy oh ok, that's very useful! Thanks for the tip. I'll try it out right away

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

      Let me know how you get on

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

      @@veryacademy Worked like a charm. Got an H10 error but going through the logs was a quick debug. The app is up and running thanks to you! Then I had issues with static not serving and followed the heroku docs about using whitenoise, worked beautifully! Thank you so much for you help! I wish I know other developers for recommending your channel! Awesome content!

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

      @@terminatorification1 Glad you got it sorted👍

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

    GitHub link not working

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

      github.com/veryacademy/YT-Django-Heroku-Deploy-Channels-Daphne just tried it - its ok

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

      @@veryacademy 404

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

      @@veryacademy Is the repository private by any chance? Anyway I fixed the issue.

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

      @@shubham8469 All fixed thank you

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

    Caveat lol, a cravat is a type of necktie

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

      Just the way it comes out 😂 thank you!

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

      @@veryacademy And thank you for your videos! I've been working with Django (1.11 and recently 2.2) for a few years now and I'm now just spending some time going over basics again and learning what's new and how I can do more modern web dev with it and your videos are currently very helpful

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

    Thank you 🙏🏼

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

    can i deploy without using the redis in channel layer