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
best django channel on this god damn hellish planet ... cheers buddy.. keep it comin ;)
Hello Reyan. So nice to read this. I’m doing my best but still there is a lot of place for improvement :) thank you!
Hatssoff man, simple and to the point.
Thank you!
wowww its working thank u pyplane u r such a legend
You are awesome. I have been following you around 7/8 months.
Wow... thanks for watching my content for so long! :) all the best to you, Luke
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.
Love your videos man!
Thank you Joshua! :)
Thanks so much. This is exactly what i was looking for.
Thank you Yusuf!
Good Job. I'm trying to create OTP login. And this basic concept is enough I'll do the rest.
cool stuffs, working great Luke
Thank you Bibek ! :)
Thank you Sir sharing this nice concept using Django.
Thank you Mohammed for watching!
very useful , thanks a lot from France
Hi Nathaniel. I'm very happy to read this :) Cheers!
thanks, you just got a subscriber
Awesome. Thank you! :)
Thanks for the amazing video.
Hi Naresh. Thanks for watching & very happy I could help :)
This is a great channel 🙃🙃🙃🙃
Thanks Vaibhav :)
@pyplane absolutely amazing
Hello Luke, thanks for the video. Am not a programmer, but am actually in need of api that send and receive sms. Thanks
Thank you brother
Hi , Amazing Job, how to send bulk sms and how to display your phone number as your Name when your send the sms. thanks
Thank you!
You're the best
Thank you 🙌
It worked!
How to receive the msg and phone number of sender details if someone replied to that twilio phone number, pls?
Thanks for sharing! I still can't receive the SMS to my phone. What could be the problem. I followed all through
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?
Hi. Create a list of numbers and loop through them
@@Pyplane Thank you
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!
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!
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
ithenth meyr
Thank you
Thank you too for watching :)
Hey, can you please zoom the terminal. Its too small
hi thanks for this piece, would mind demystifying rest APIs with Django?
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 :)
@@Pyplane do you know of a channel with nice tutorials over the same you can recommend?
@@muhinyiawandegwa624 Coding for entrepreneurs and Daniel Feldroy
Thanks
I'll check
amazing
Very good, i need to use a local number as server number. I need to use it locally in a project. please help me
Thanks, can you please show how to store customer numbers and send auto sms reply?
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"
@@Pyplane Sorry, ok so on a landing page when you enter a phone number, an sms message gets sent with a coupon
@@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?
This is what i see: Unable to import 'phonenumber_field.modelfields' pylint(import-error) [4,1]
@@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
Awesome
Thanks :)
can we do this without any api
your awesome
Thanks! :)
Hello , Is twilio free for send sms to mobile?
Thank you so much but, little zoom plz
The content was great. Thank you. However, I still don't understand how to receive a response through twilio
another video would be great
what should I do if want to send SMS to my all saved contacts numbers?
Just do pretty much the same thing but use a for loop through the contacts
im getting this error TwilioRestException at /admin/scores/scroll/add/ ,[31m[49mHTTP Error[0m [37m[49mYour request was:[0m like that, can u help ?
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"?
@@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 :)
@@techcodification2815 Awesome. Happy you figured it out :) Cheers!
Not working, getting "KeyError'
twilio alows you send only 350 sms, that solution isnt free and no recomended for notification.
i did not get sms
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
Fuk title was how to send and how to receive sms but i could not see how to receive