diff --git a/django/conf/__init__.py b/django/conf/__init__.py
index 7452013..a6631aa 100644
|
a
|
b
|
variable, and then from django.conf.global_settings; see the global settings fil
|
| 6 | 6 | a list of all possible variables. |
| 7 | 7 | """ |
| 8 | 8 | |
| | 9 | import logging |
| 9 | 10 | import os |
| 10 | 11 | import time # Needed for Windows |
| 11 | 12 | import warnings |
| … |
… |
class LazySettings(LazyObject):
|
| 54 | 55 | """ |
| 55 | 56 | Setup logging from LOGGING_CONFIG and LOGGING settings. |
| 56 | 57 | """ |
| | 58 | try: |
| | 59 | logging.captureWarnings(True) |
| | 60 | warnings.simplefilter("default", DeprecationWarning) |
| | 61 | except AttributeError: |
| | 62 | # No captureWarnings on Python 2.6, DeprecationWarnings are on anyway |
| | 63 | pass |
| | 64 | |
| 57 | 65 | if self.LOGGING_CONFIG: |
| 58 | 66 | from django.utils.log import DEFAULT_LOGGING |
| 59 | 67 | # First find the logging configuration function ... |
diff --git a/django/utils/log.py b/django/utils/log.py
index ea01227..3852271 100644
|
a
|
b
|
DEFAULT_LOGGING = {
|
| 62 | 62 | 'level': 'ERROR', |
| 63 | 63 | 'propagate': False, |
| 64 | 64 | }, |
| | 65 | 'py.warnings': { |
| | 66 | 'handlers': ['console'], |
| | 67 | }, |
| 65 | 68 | } |
| 66 | 69 | } |
| 67 | 70 | |