Skip to main content

Using ngrok with Django


tip

This article assumes you have Python, PIP, and Django already installed.

Agent Management

If you're looking to natively embed the ngrok agent into your Django application, you can leverage the pyngrok project to start a tunnel anytime you start the Django Dev Server.

Python SDK (beta)

You can also use the beta ngrok Python SDK to start a tunnel to the Django server via a ngrok ASGI runner or embedding in manage.py or asgi.py.