Skip to content

Using Inspectr with Django

Django is a popular Python web framework for building robust applications. Inspectr lets you debug HTTP traffic and expose your local Django server for webhook testing.

This guide walks you through using Inspectr with a Django project.


  • Python 3.8+
  • Django installed (pip install django)
  • Inspectr installed (Install guide →)

If you don’t have one already, create a new project and start the development server:

Terminal window
django-admin startproject mysite
cd mysite
python manage.py runserver 8000

Your app will be available at http://localhost:8000.


Terminal window
inspectr --listen=:8080 --backend=http://localhost:8000

Send a request via Inspectr:

Terminal window
curl http://localhost:8080/

Requests will be forwarded to Django and displayed in the Inspectr App UI at http://localhost:4004.


Terminal window
inspectr \
--listen=:8080 \
--backend=http://localhost:8000 \
--expose \
--channel=django-demo \
--channel-code=django123

Your public endpoint will be:

https://django-demo.in-spectr.dev

Inspectr helps you debug Django applications by capturing requests, replaying them, and exposing your local server for external integrations.


//: # (* Quick Start →) //: # (* Exposing Publicly →) //: # (* Webhook Debugging →)