diff --git a/django/core/management/commands/runserver.py b/django/core/management/commands/runserver.py
index 402b3d3..503cff2 100644
a
|
b
|
|
| 1 | from __future__ import unicode_literals |
| 2 | |
1 | 3 | from optparse import make_option |
2 | 4 | from datetime import datetime |
3 | 5 | import errno |
… |
… |
import socket
|
9 | 11 | from django.core.management.base import BaseCommand, CommandError |
10 | 12 | from django.core.servers.basehttp import run, get_internal_wsgi_application |
11 | 13 | from django.utils import autoreload |
| 14 | from django.utils import six |
12 | 15 | |
13 | 16 | naiveip_re = re.compile(r"""^(?: |
14 | 17 | (?P<addr> |
… |
… |
class Command(BaseCommand):
|
96 | 99 | |
97 | 100 | self.stdout.write("Validating models...\n\n") |
98 | 101 | self.validate(display_num_errors=True) |
| 102 | now = datetime.now().strftime('%B %d, %Y - %X') |
| 103 | if six.PY2: |
| 104 | now = now.decode('utf-8') |
| 105 | |
99 | 106 | self.stdout.write(( |
100 | 107 | "%(started_at)s\n" |
101 | 108 | "Django version %(version)s, using settings %(settings)r\n" |
102 | 109 | "Starting development server at http://%(addr)s:%(port)s/\n" |
103 | 110 | "Quit the server with %(quit_command)s.\n" |
104 | 111 | ) % { |
105 | | "started_at": datetime.now().strftime('%B %d, %Y - %X'), |
| 112 | "started_at": now, |
106 | 113 | "version": self.get_version(), |
107 | 114 | "settings": settings.SETTINGS_MODULE, |
108 | 115 | "addr": '[%s]' % self.addr if self._raw_ipv6 else self.addr, |