Skip to content Skip to sidebar Skip to footer

Suppress Django Naive Datetime Warnings

I am concerned with a script that involves datetime module. I have to suppress 'object received a naive datetime while timezone is active' as there are other print statements in th

Solution 1:

Just disable the usage of timezones, as stated in the documentation:

USE_TZ = False

Post a Comment for "Suppress Django Naive Datetime Warnings"