Skip to main content

Provides a lightweight development runserver on Werkzeug with debugging

Project description


Provides a lightweight development runserver on Werkzeug with a
web-based debugger with support for REST APIs.


- Friendly for API debugging, like Django Rest Framework.
- Werkzeug `web-based
debugger <>`__

:warning: Be very careful to keep this away from any production environment

Installation and Configuration

>From PyPI with pip


pip install django-rundbg

In your `development
settings <>`__
file add the following:


from yourproject.settings_general import INSTALLED_APPS

INSTALLED_APPS = INSTALLED_APPS + ['django_rundbg',]

DEBUG = True


After installation and configuration, just run:


python rundbg --use-link

To try out, just place an ``assert False`` statement whenever you want
to inspect your code and variables and this will show either at your
current browser window or in the dev console.

.. figure::
:alt: Chrome Dev Console example

Chrome Dev Console example


After installation and configuration, just run:


python rundbg

Since it extends on Django's ``runserver`` you can pass on the same
parameters than to ``rundbg``:


python rundbg --no-reload

Additionally, it supports one additional parameter useful for debugging
XHR requests:


python rundbg --use-link

This will show an very simple error 500 page, with a *link* to the
Werkzeug Traceback and web-based interactive debugger that you can open
in any browser window. The default behaviour for the Werkzeug debugger
is to serve the debugging page to the request that created the

Additionally, it supports the following parameters from
``runserver_plus``: - ``--reloader-interval 2`` After how many seconds
auto-reload should scan for updates in poller-mode. -
``--keep-meta-shutdown`` Keep
``request.META['werkzeug.server.shutdown']`` function which is
automatically removed because Django debug pages tries to call the
function and unintentionally shuts down the Werkzeug server.

*Werkzeug security PIN is disabled*.


This project is strongly based upon the work of others: - The `Django
Extensions <>`__
``runserver_plus`` is a more comprehensive command than this one. - The
`Werkzeug <>`__ server. - `Another
take <>`__
on the same challenge.


- Juan Saavedra

With :heart: from `Octobot <>`__

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django_rundbg-0.1.3-py2.py3-none-any.whl (10.3 kB) Copy SHA256 hash SHA256 Wheel py2.py3
django-rundbg-0.1.3.tar.gz (11.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page