Skip to main content

This is a drop-in replacement for Django’s runserver command for the impatient.

Django’s development server restarts itself whenever it detects a change in any loaded module, which is great. What’s not so great is that during the restart, there is a window of time where, if you’re like me, you’d be hitting Ctrl+R key repeatedly on the browser only to be greeted with ECONNREFUSED because the server is not ready.

Django-pserver solves this problem by reusing the listening socket when it restarts, so you can just hit refresh once and wait (retaining your sanity.)

Usage

To use it, simply add pserver to your INSTALLED_APPS, and run manage.py runserver as usual.

TODO

I’ve tested this on Django 1.2.4 and 1.3, but it could well work with other versions.

Tested on OS X only, but should work on any UNIX variant. It will probably break horribly on Windows.

Metadata

Release files for django-pserver 0.2

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-pserver 0.2
File Size Uploaded Provenance Actions
django-pserver-0.2.tar.gz 3.7 kB Without provenance Details for django-pserver-0.2.tar.gz

Release files / django-pserver-0.2.tar.gz

Download URL django-pserver-0.2.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e4dff54ab220b861cc61ff78e1df44b6945563000e2a16cb621b30525b5cff06
BLAKE2b-256 checksum
How to use checksums
b2a51741b5e90ee3cd86f01d7d37f9f769255610d57f0483a4e0429cbdf70ab1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-pserver 0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file No provenance

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