Created
February 19, 2013 10:13
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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