Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit cb1614f7b30f336db2a807b43696e20fdab7b78c 1 parent 2e92858
Mike Grouchy authored September 10, 2012 claudep committed September 10, 2012
3  django/core/management/commands/runserver.py
... ...
@@ -1,4 +1,5 @@
1 1
 from optparse import make_option
  2
+from datetime import datetime
2 3
 import os
3 4
 import re
4 5
 import sys
@@ -90,10 +91,12 @@ def inner_run(self, *args, **options):
90 91
         self.stdout.write("Validating models...\n\n")
91 92
         self.validate(display_num_errors=True)
92 93
         self.stdout.write((
  94
+            "%(started_at)s\n"
93 95
             "Django version %(version)s, using settings %(settings)r\n"
94 96
             "Development server is running at http://%(addr)s:%(port)s/\n"
95 97
             "Quit the server with %(quit_command)s.\n"
96 98
         ) % {
  99
+            "started_at": datetime.now().strftime('%B %d, %Y - %X'),
97 100
             "version": self.get_version(),
98 101
             "settings": settings.SETTINGS_MODULE,
99 102
             "addr": self._raw_ipv6 and '[%s]' % self.addr or self.addr,

0 notes on commit cb1614f

Please sign in to comment.
Something went wrong with that request. Please try again.