Search code examples
djangopython-3.xdjango-timezone

How to change Django's start server time format?


When I start django server using following command:

python manage.py runserver

It shows current time likes:

 January 02, 2018 - 15:35:17

But I want to see time format:

January 02, 2018 - 3:35:17pm

How can I do it?

Thank you


Solution

  • I don't understand why would some pretty much meaningless date and time and its format in the printout when you run development server be an issue. You cannot change that without changing source code. It's hardcoded. See source code here.