Ticket #6486: views_debug__server_time.diff
File views_debug__server_time.diff, 934 bytes (added by , 17 years ago) |
---|
-
django/views/debug.py
1 1 import os 2 2 import re 3 3 import sys 4 import datetime 4 5 5 6 from django.conf import settings 6 7 from django.template import Template, Context, TemplateDoesNotExist … … 158 159 'settings': get_safe_settings(), 159 160 'sys_executable': sys.executable, 160 161 'sys_version_info': '%d.%d.%d' % sys.version_info[0:3], 162 'server_time': datetime.datetime.now(), 161 163 'django_version_info': get_version(), 162 164 'sys_path' : sys.path, 163 165 'template_info': template_info, … … 386 388 <td>{{ sys_version_info }}</td> 387 389 </tr> 388 390 <tr> 391 <th>Server time:</th> 392 <td>{{server_time|date:"r"}}</td> 393 </tr> 394 <tr> 389 395 <th>Python Path:</th> 390 396 <td>{{ sys_path }}</td> 391 397 </tr>