First, make sure you use the SessionAuthentication in Django. Put this in your settings.py
# Django rest framework
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': [
'rest_framework.authentication.SessionAuthentication'| Code | Desc | Details | |
|---|---|---|---|
| 10001 | Account is not active | https://www.twilio.com/docs/api/errors/10001 | |
| 10002 | Trial account does not support this feature | https://www.twilio.com/docs/api/errors/10002 | |
| 10003 | Incoming call rejected due to inactive account | https://www.twilio.com/docs/api/errors/10003 | |
| 11100 | Invalid URL format | https://www.twilio.com/docs/api/errors/11100 | |
| 11200 | HTTP retrieval failure | https://www.twilio.com/docs/api/errors/11200 | |
| 11205 | HTTP connection failure | https://www.twilio.com/docs/api/errors/11205 | |
| 11206 | HTTP protocol violation | https://www.twilio.com/docs/api/errors/11206 | |
| 11210 | HTTP bad host name | https://www.twilio.com/docs/api/errors/11210 | |
| 11215 | HTTP too many redirects | https://www.twilio.com/docs/api/errors/11215 |
| # | |
| # Install the MYSQL driver | |
| # gem install mysql2 | |
| # | |
| # Ensure the MySQL gem is defined in your Gemfile | |
| # gem 'mysql2' | |
| # | |
| # And be sure to use new-style password hashing: | |
| # http://dev.mysql.com/doc/refman/5.0/en/old-client.html | |
| development: |