Opened 3 years ago

Closed 3 years ago

Last modified 10 months ago

#18611 closed New feature (fixed)

Show the date and time when the dev server gets started

Reported by: julien Owned by: nobody
Component: Core (Other) Version: 1.4
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

It would be very useful, I think, if the dev server outputted the date and time when is gets started. Something like:

July 10, 2012 - 1:23pm
0 errors found
Django version 1.5.dev20120707224104, using settings 'src.settings'
Development server is running at http://0.0.0.0:8000/
Quit the server with CONTROL-C.

The server can't always be trusted to systematically restart when there's a code change. Because of that, I keep finding myself shutting it down and restarting it, just in case, because I'm not sure it actually just picked up the change. Seeing the date/time would help to quickly be sure.

Change History (7)

comment:1 Changed 3 years ago by aaugustin

  • Triage Stage changed from Unreviewed to Accepted

Why not.

This could help, until we get a better autoreloader (one day).

comment:2 Changed 3 years ago by mgrouchy

This seemed like a pretty simple addition so I added a patch for this to display the current Datetime in the format above.

Pull request is here -> https://github.com/django/django/pull/236

Let me know if it needs anything else.

comment:3 Changed 3 years ago by eduardocereto

  • Has patch set

comment:4 Changed 3 years ago by mgrouchy

Is there anything I can do to get this Pull Request Reviewed?

comment:5 Changed 3 years ago by mjtamlyn

  • Triage Stage changed from Accepted to Ready for checkin

comment:6 Changed 3 years ago by Claude Paroz <claude@…>

  • Resolution set to fixed
  • Status changed from new to closed

In [cb1614f7b30f336db2a807b43696e20fdab7b78c]:

Fixed #18611 -- Display current date/time when running runserver

comment:7 Changed 10 months ago by aaugustin

FTR this made it impossible to start the dev server on some platforms, see #21358 and #23265.

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