Skip to main content

A quieter version of the default Django runserver.

The default runserver prints out a lot of information, and not all of it is useful. This packages removes most of the information printed, leaving only the important stuff:

  • Requests to some static assets are not logged

  • 304 Not Modified requests are not logged

  • Timestamps are no longer included. Most of the time, these are noise

  • The common response types GET and POST are abbreviated to G and P

  • GET query strings are logged on a separate, slightly indented line, allowing for easy differentiation.

Example:

200 G /
200 G /static/styles.css
200 G /search/
  ?q=foo&sort=date
200 G /item/123/
301 P /item/123/
200 G /item/123/

Installing

Install this package:

pip install djangoquietrunserver

Include it in your INSTALLED_APPS:

INSTALLED_APPS += (
    'djangoquietrunserver',
)

Using

Use runserver-- instead of runserver:

python manage.py runserver--

Monkey patching

If you do not want to use runserver--, you can monkey patch Django so that the default runserver will use the quieter logging by default. If you’re running Django 1.7 or above, use the following in your INSTALLED_APPS instead:

INSTALLED_APPS += (
    'djangoquietrunserver.apps.MonkeypatchConfig',
)

If you’re running an older version of Django, enable the monkeypatch by adding the following lines to your manage.py, just after the import sys line:

import djangoquietrunserver.monkeypatch
djangoquietrunserver.monkeypatch()

Release files for django-quiet-runserver 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-quiet-runserver 0.2.0
File Size Uploaded
django-quiet-runserver-0.2.0.tar.gz 3.3 kB Details

Release files / django-quiet-runserver-0.2.0.tar.gz

Download URL django-quiet-runserver-0.2.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b95abb141495016739748c21feae460a94d0eace19c00f5c1a72be5d44ef6576
BLAKE2b-256 checksum
How to use checksums
1a8459841d44ef677cfeecc9da7149efd78c9334ef0733540a8a384ae1fe9457
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page