A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/twiliodeved/call-tracking-django below:

TwilioDevEd/call-tracking-django: Use Twilio to track the effectiveness of your different marketing campaigns.

Use Twilio to track the effectiveness of your different marketing campaigns. Learn how call tracking helps organizations in these Twilio customer stories.

Read the full tutorial here!

This project is configured to use a TwiML App, which allows us to easily set the voice URLs for all Twilio phone numbers we purchase in this app.

Create a new TwiML app in the Twilio Console and use its Sid as the TWIML_APPLICATION_SID environment variable wherever you run this app.

Learn how to create a TwiML app.

This project is built using the Django web framework. It runs on Python 3.6+.

To run the app locally, first clone this repository and cd into its directory. Then:

  1. Create a new virtual environment:

  2. Install the requirements:

    pip install -r requirements.txt
    
  3. Start a local PostgreSQL database and create a database called call_tracking:

  4. Copy the .env.example file to .env, and edit it to include your Twilio API credentials (found at https://www.twilio.com/user/account/voice)

  5. Run source .env to apply the environment variables (or even better, use autoenv)

  6. Run the migrations with:

  7. Optionally create a superuser so you can access the Django admin:

    python manage.py createsuperuser
    
  8. Collect static files from each of your application

    python manage.py collectstatic
    
  9. Start the development server

    python manage.py runserver
    

To actually forward incoming calls, your development server will need to be publicly accessible. We recommend using ngrok to solve this problem.

Once you have started ngrok, update your TwiML app's voice URL setting to use your ngrok hostname, so it will look something like this:

http://88b37ada.ngrok.io/call-tracking/forward-call

Note: To enable debug logs in local environment, set the DEBUG variable to True in the local.py file

Use Production Environment

Follow previous guide and in step 6 do:

  1. Copy the .env.prod.example file to .env, and edit it to include your Twilio API credentials (found at https://www.twilio.com/user/account/voice)

You can run the tests locally through coverage:

$ coverage run manage.py test --settings=twilio_sample_project.settings.test

You can then view the results with coverage report or build an HTML report with coverage html.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4