/plushcap/analysis/twilio/expose-local-django-server-to-internet-using-ngrok

Expose a local Django server to the Internet using ngrok

What's this blog post about?

ngrok is a utility that generates public URLs mapping to local servers, enabling developers to test their Django projects' functionality with external sources by exposing them to the Internet. To use ngrok with Django, install the pyngrok package and add its URL to the `ALLOWED_HOSTS` list in settings.py. Then, start the local server and open a new command line window to start the ngrok tunnel, which exposes both secure (HTTPS) and insecure (HTTP) URLs that forward to localhost:8000. Copy the secure URL and trigger requests from external sources to test your Django app's functionality.

Company
Twilio

Date published
July 19, 2021

Author(s)
August Allard

Word count
763

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.