[Answer]-Django Twilio module is not getting installed on Heroku

1👍

You didn’t add the proper requirement, you only installed the twilio library. Your requirements.txt should include the following line:

django-twilio==0.4

Which will include all the other dependencies you’ll need. The full pip freeze, after installing django-twilio looks like this:

Django==1.5.5
django-twilio==0.4
httplib2==0.8
six==1.4.1
twilio==3.6.3
unittest2==0.5.1

As a rule of thumb, always run pip freeze > requirements.txt before pushing an update to Heroku (assuming new dependencies were installed), to make sure you have a complete snapshot of your environment.

Leave a comment