In your terminal use the following command to create a new virtualenv and activate it: We are going to install the helper library from PyPI into a virtualenv.īut first we need to create the virtual environment. Our code will use the Twilio helper library to make it easier to send text messages from Python. This blog post's code is also available on GitHub within the django/djsms directory of the python-twilio-example-apps Git repository on GitHub. If you need help getting your development environment configured before running this code, take a look at this guide for setting up Python 3 and Django on Ubuntu 16.04 LTS. Sign up to get an account so you can use the Twilio APIs The Twilio Python helper library, version 6.32.0 or greater.We will also use the following application dependencies in our application: We’ll use Python 3.8 to build this tutorial. Python 3 is required for this tutorial because Python 2 will no longer be supported after December 31, 2019. If you want to go further in learning either Python or the Twilio SMS API, check out the amazing TwilioQuest training game. In this tutorial, we will build a straightforward Django project with SMS capability that transmits messages to multiple recipients. They’re also easy to send at scale by combining a Django web application with an application programming interface (API). Short Message Service (SMS) text messages are ubiquitous for time-sensitive communication.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |