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 Tim Graham, 8 years ago

Summary: Make runserver command more extensibleAdd protocol and server_cls attributes to runserver for extensibility
Triage Stage: UnreviewedReady for checkin

comment:2 by Tim Graham <timograham@…>, 8 years ago

Resolution: fixed
Status: newclosed

In e5e37473:

Fixed #27705 -- Added protocol/server_cls attributes to runserver for extensibility.

Note: See TracTickets for help on using tickets.
Back to Top