How to send / receive SMS in a Django Project | SMS in Python with Twilio

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ม.ค. 2025
  • Tutorial on how to send and receive SMS in a Django Projects
    Learn how to easily integrate SMS functionality into your Django project using Python and Twilio. In this tutorial, we'll show you step-by-step how to set up Twilio, create a Django view to send SMS messages, and receive SMS messages using Twilio's webhook. By the end of this video, you'll be able to add SMS capabilities to your Django application and communicate with your users in real-time. Watch now and start sending and receiving SMS messages with Python and Twilio today!
    🔥 Join the facebook group:
    / djangoninjas 🚀
    🔥 Follow pyplane on:
    ➜ instagram: / pyplaneblog
    ➜ pinterest: / pyplane
    ➜ facebook: / pyplane
    🔥 More on python and django:
    ➜ blog.pyplane.com
    Learn how to integrate Django with Twilio in order to send/receive SMS in your project.
    #django #sms #twilio
    django, sms, twilio, python, django sms, python sms, django twilio, python twilio, send sms in django, text message, sms api, send sms python, automatic sms, automatic sms send app, Python programming projects

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

  • @reyanjonas5059
    @reyanjonas5059 4 ปีที่แล้ว +3

    best django channel on this god damn hellish planet ... cheers buddy.. keep it comin ;)

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

      Hello Reyan. So nice to read this. I’m doing my best but still there is a lot of place for improvement :) thank you!

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

    Hatssoff man, simple and to the point.

    • @Pyplane
      @Pyplane  2 ปีที่แล้ว

      Thank you!

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

    wowww its working thank u pyplane u r such a legend

  • @devfahim5933
    @devfahim5933 3 ปีที่แล้ว

    You are awesome. I have been following you around 7/8 months.

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

      Wow... thanks for watching my content for so long! :) all the best to you, Luke

    • @devfahim5933
      @devfahim5933 3 ปีที่แล้ว

      I have a request video. I want to sell multiple product which quantity can be change before changing them. I don't know how to do that with django & js. To be more specific you can Check this applications create sell section. enterprise.geekfahim.com
      Can you please make a tutorial on that.

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

    Love your videos man!

    • @Pyplane
      @Pyplane  3 ปีที่แล้ว

      Thank you Joshua! :)

  • @yusufrumi1626
    @yusufrumi1626 4 ปีที่แล้ว +3

    Thanks so much. This is exactly what i was looking for.

    • @Pyplane
      @Pyplane  4 ปีที่แล้ว

      Thank you Yusuf!

  • @abilashk3193
    @abilashk3193 3 ปีที่แล้ว

    Good Job. I'm trying to create OTP login. And this basic concept is enough I'll do the rest.

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

    cool stuffs, working great Luke

    • @Pyplane
      @Pyplane  4 ปีที่แล้ว

      Thank you Bibek ! :)

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

    Thank you Sir sharing this nice concept using Django.

    • @Pyplane
      @Pyplane  4 ปีที่แล้ว

      Thank you Mohammed for watching!

  • @ffoofooify
    @ffoofooify 4 ปีที่แล้ว

    very useful , thanks a lot from France

    • @Pyplane
      @Pyplane  4 ปีที่แล้ว

      Hi Nathaniel. I'm very happy to read this :) Cheers!

  • @nafiyad1950
    @nafiyad1950 4 ปีที่แล้ว

    thanks, you just got a subscriber

    • @Pyplane
      @Pyplane  4 ปีที่แล้ว

      Awesome. Thank you! :)

  • @nareshkumar-mm3hq
    @nareshkumar-mm3hq 4 ปีที่แล้ว

    Thanks for the amazing video.

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

      Hi Naresh. Thanks for watching & very happy I could help :)

  • @vaibhavgupta4413
    @vaibhavgupta4413 4 ปีที่แล้ว

    This is a great channel 🙃🙃🙃🙃

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

      Thanks Vaibhav :)

    • @vaibhavgupta4413
      @vaibhavgupta4413 4 ปีที่แล้ว

      @pyplane absolutely amazing

  • @judeagamugoro4538
    @judeagamugoro4538 4 ปีที่แล้ว

    Hello Luke, thanks for the video. Am not a programmer, but am actually in need of api that send and receive sms. Thanks

  • @AshiqAli-ie5pm
    @AshiqAli-ie5pm 11 หลายเดือนก่อน

    Thank you brother

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

    Hi , Amazing Job, how to send bulk sms and how to display your phone number as your Name when your send the sms. thanks

  • @tekefsane127
    @tekefsane127 3 ปีที่แล้ว

    Thank you!

  • @alourou4081
    @alourou4081 2 ปีที่แล้ว

    You're the best

    • @Pyplane
      @Pyplane  2 ปีที่แล้ว

      Thank you 🙌

  • @anandhs6984
    @anandhs6984 2 ปีที่แล้ว

    It worked!

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

    How to receive the msg and phone number of sender details if someone replied to that twilio phone number, pls?

  • @discoveryunit7753
    @discoveryunit7753 2 ปีที่แล้ว

    Thanks for sharing! I still can't receive the SMS to my phone. What could be the problem. I followed all through

  • @NgazetungueMuheue
    @NgazetungueMuheue 4 ปีที่แล้ว

    Thank you, this is what i was looking for but i have one question: how to send message to multiple numbers at the same time?

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

      Hi. Create a list of numbers and loop through them

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

      @@Pyplane Thank you

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

    First of all, your videos are absolutely amazing! Thank you for the work you do.
    I am wondering about sending password reset messages. Could I somehow use this to send SMS instead of email? I am trying to figure that out. Any help would be greatly appreciated!

    • @Pyplane
      @Pyplane  3 ปีที่แล้ว

      Thank you! To be honest I never did this, but I also have a video on the channel about simple two factor authentication. Have you seen it? It's a little bit different case than the one you described but it might be helpful for you. All the best!

    • @motlatsimoea
      @motlatsimoea 3 ปีที่แล้ว

      Thank you for the reply. I will look for that video. Hopefully it will help. I'm designing a project in which users predominantly prefer phone numbers over emails so I need to cater to that

    • @crashtestdummy3370
      @crashtestdummy3370 2 ปีที่แล้ว

      ithenth meyr

  • @MD-cu8tt
    @MD-cu8tt 4 ปีที่แล้ว +1

    Thank you

    • @Pyplane
      @Pyplane  4 ปีที่แล้ว

      Thank you too for watching :)

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

    Hey, can you please zoom the terminal. Its too small

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

    hi thanks for this piece, would mind demystifying rest APIs with Django?

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

      Hi. I have django rest framework on my list, however the priority is medium since there is already quite a lot tutorials on this. But definetly going to some tutorial on this in the near future :)

    • @muhinyiawandegwa624
      @muhinyiawandegwa624 4 ปีที่แล้ว

      @@Pyplane do you know of a channel with nice tutorials over the same you can recommend?

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

      @@muhinyiawandegwa624 Coding for entrepreneurs and Daniel Feldroy

    • @muhinyiawandegwa624
      @muhinyiawandegwa624 4 ปีที่แล้ว

      Thanks
      I'll check

  • @faheemullah859
    @faheemullah859 3 ปีที่แล้ว

    amazing

  • @sawadogoibrahim8861
    @sawadogoibrahim8861 4 ปีที่แล้ว

    Very good, i need to use a local number as server number. I need to use it locally in a project. please help me

  • @TomislavMiletic
    @TomislavMiletic 4 ปีที่แล้ว

    Thanks, can you please show how to store customer numbers and send auto sms reply?

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

      Hi Tomislav. For the first question you can use pypi.org/project/django-phonenumber-field/. For the second question I'm not sure I understand the purpose.. In the tutorial the app informs the user that something has happened. If you want to add a customer number and send a confirmation to the customer that the number has been added you just specify it in the client.messages.create as a keyword argument "to"

    • @TomislavMiletic
      @TomislavMiletic 4 ปีที่แล้ว

      @@Pyplane Sorry, ok so on a landing page when you enter a phone number, an sms message gets sent with a coupon

    • @TomislavMiletic
      @TomislavMiletic 4 ปีที่แล้ว

      @@Pyplane I tried this for phone numbers, but when i type from phonenumber_field.modelfields import PhoneNumberField i get an error "unable to import..." Any tips please?

    • @TomislavMiletic
      @TomislavMiletic 4 ปีที่แล้ว

      This is what i see: Unable to import 'phonenumber_field.modelfields' pylint(import-error) [4,1]

    • @Pyplane
      @Pyplane  4 ปีที่แล้ว

      @@TomislavMiletic you can follow along one of my first videos, little bit a shamed of it :) but here it is: th-cam.com/video/u7MJxv_P2Pk/w-d-xo.html

  • @agranshuaggarwal3947
    @agranshuaggarwal3947 3 ปีที่แล้ว

    Awesome

    • @Pyplane
      @Pyplane  3 ปีที่แล้ว

      Thanks :)

  • @ABHI-oy6vf
    @ABHI-oy6vf 2 ปีที่แล้ว

    can we do this without any api

  • @francineamberfortes4138
    @francineamberfortes4138 3 ปีที่แล้ว

    your awesome

    • @Pyplane
      @Pyplane  3 ปีที่แล้ว

      Thanks! :)

  • @ajayreddykanduru453
    @ajayreddykanduru453 2 ปีที่แล้ว

    Hello , Is twilio free for send sms to mobile?

  • @viddeshk8020
    @viddeshk8020 4 ปีที่แล้ว

    Thank you so much but, little zoom plz

  • @reanukeeves3882
    @reanukeeves3882 4 ปีที่แล้ว

    The content was great. Thank you. However, I still don't understand how to receive a response through twilio

  • @hiteshgupta831
    @hiteshgupta831 3 ปีที่แล้ว

    what should I do if want to send SMS to my all saved contacts numbers?

    • @Pyplane
      @Pyplane  3 ปีที่แล้ว

      Just do pretty much the same thing but use a for loop through the contacts

  • @techcodification2815
    @techcodification2815 4 ปีที่แล้ว

    im getting this error TwilioRestException at /admin/scores/scroll/add/ ,HTTP Error Your request was: like that, can u help ?

    • @Pyplane
      @Pyplane  4 ปีที่แล้ว

      Hi. Honestly it's difficult to see what's wrong without seeing the code. Did you provide the correct account_sid and auth_token as well as the number "from"?

    • @techcodification2815
      @techcodification2815 4 ปีที่แล้ว

      @@Pyplane actually i did not put the country code before my phone number ,thats why i was getting that error , when i looked into the error at one line I found it saying your number is invalid , now its working fine .Thankyou so much for the tutorial :)

    • @Pyplane
      @Pyplane  4 ปีที่แล้ว

      @@techcodification2815 Awesome. Happy you figured it out :) Cheers!

  • @NaimSiddiquiBD
    @NaimSiddiquiBD 3 ปีที่แล้ว

    Not working, getting "KeyError'

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

    twilio alows you send only 350 sms, that solution isnt free and no recomended for notification.

  • @ravindrakumara5584
    @ravindrakumara5584 4 ปีที่แล้ว

    i did not get sms

    • @Pyplane
      @Pyplane  4 ปีที่แล้ว

      Hi. Sorry to read this :( Did you take the exact steps that I did? Please check twilio help center: support.twilio.com/hc/en-us/articles/223133447-Not-Receiving-Incoming-SMS-and-MMS-Messages-on-Twilio-Phone-Number
      If still you won't find the answer and you're 100% there is no mistake in code I suggest to contact twilio. What I can do to help is to upload the source code

  • @husniddingafurov7340
    @husniddingafurov7340 3 ปีที่แล้ว

    Fuk title was how to send and how to receive sms but i could not see how to receive