tracebacks when a RuntimeWarning: DateTimeField xxxx received a naive datet
ime
diff --git a/xos/xos/settings.py b/xos/xos/settings.py
index dad7888..417be81 100644
--- a/xos/xos/settings.py
+++ b/xos/xos/settings.py
@@ -2,6 +2,7 @@
from django import VERSION as DJANGO_VERSION
import socket
import os
+import warnings
from urlparse import urlparse
# Django settings for XOS.
@@ -67,6 +68,12 @@
# In a Windows environment this must be set to your system time zone.
TIME_ZONE = 'America/New_York'
+# Verbose warnings when a naive datetime is used, gives a traceback
+# from: https://docs.djangoproject.com/en/1.9/topics/i18n/timezones/#code
+warnings.filterwarnings(
+ 'error', r"DateTimeField .* received a naive datetime",
+ RuntimeWarning, r'django\.db\.models\.fields')
+
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'