Add timestamp output to runserver when "Validating models..."
|Reported by:||Valera Grishin||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
This is simple improvement to the Django development server available through "manage.py runserver" command. The goal is to add output of current time to the string "Validating models..."
So the proposition is to change this:
!#python # django/core/management/commands/runserver.py:47 print "Validating models..."
!#python # django/core/management/commands/runserver.py print "[%s] Validating models..." % str(datetime.datetime.now())[11:19]
This will cause the output:
to to be similar to this:
[21:30:42] Validating models...
Obviously you need to import datetime at the top of file (not shown in the example above). Full patch is attached.
Change History (5)
Changed 7 years ago by Valera Grishin <valery.grishin@…>
comment:1 follow-up: ↓ 2 Changed 7 years ago by ubernostrum
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset