Opened 8 years ago
Closed 8 years ago
#27705 closed New feature (fixed)
Add protocol and server_cls attributes to runserver for extensibility
Reported by: | David Sanders | Owned by: | nobody |
---|---|---|---|
Component: | Core (Management commands) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Small refactor of the code for the runserver
management command to make it easier to extend. Namely, make it easy for a subclass of the command to change the protocol in the startup message, and allow easy changing of the server class used.
These changes make it much easier to create an SSL version of runserver
without duplicating code like the django-sslserver project has done. That project suffers from the autoreload functionality not working due to the copied code, as well as drift in flags available for the command, again due to having to copy code.
Change History (2)
comment:1 by , 8 years ago
Summary: | Make runserver command more extensible → Add protocol and server_cls attributes to runserver for extensibility |
---|---|
Triage Stage: | Unreviewed → Ready for checkin |
PR