Skip to content

Instantly share code, notes, and snippets.

@sebastibe
Created February 19, 2013 10:13
Show Gist options
  • Save sebastibe/4984619 to your computer and use it in GitHub Desktop.
Save sebastibe/4984619 to your computer and use it in GitHub Desktop.
During development, you can turn such warnings into exceptions and get a traceback by adding the following to your settings file
import warnings
warnings.filterwarnings(
'error', r"DateTimeField received a naive datetime",
RuntimeWarning, r'django\.db\.models\.fields')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment