How to display current date & time in python-django website? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to display current date & time in python-django website?

How to display current date & time in python-django website? if available code then please suggest me link. Thank you!!

9th Apr 2019, 7:25 AM
Rameshwor Nepal
Rameshwor Nepal - avatar
1 Answer
+ 2
You mean to activate timezone support? If yes then you can do this by going to setting.py and setting up USE_TZ= True. There's a good detail over here. You can check it out : https://docs.djangoproject.com/en/2.2/topics/i18n/timezones/
9th Apr 2019, 8:26 AM
Шащи Ранжан
Шащи Ранжан - avatar