diff options
| author | David Cramer | 2011-10-26 13:44:57 -0700 |
|---|---|---|
| committer | David Cramer | 2011-10-26 13:44:57 -0700 |
| commit | f3cec8fc9bc65149e7b58a90b5264df4ed6d3859 (patch) | |
| tree | 4888892ead8db417ad6b7034c2c66b9052c63594 /example/settings.py | |
| parent | c9147364e40fd01d5fafcbdeb1c9563d2b5a4361 (diff) | |
| parent | e455bec46f7beb92526acf100d269d88c2ede064 (diff) | |
| download | django-debug-toolbar-f3cec8fc9bc65149e7b58a90b5264df4ed6d3859.tar.bz2 | |
Merge pull request #223 from Apkawa/master
Fixed profiling.ProfilingDebugPanel and bug for raw sql with no latin comments
Diffstat (limited to 'example/settings.py')
| -rw-r--r-- | example/settings.py | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/example/settings.py b/example/settings.py index fac99af..c421a62 100644 --- a/example/settings.py +++ b/example/settings.py @@ -1,5 +1,6 @@ import os PROJECT_PATH = os.path.realpath(os.path.dirname(__file__)) +os.sys.path.insert(0, os.path.dirname(PROJECT_PATH)) ADMIN_MEDIA_PREFIX = '/admin_media/' DATABASE_ENGINE = 'sqlite3' @@ -31,7 +32,9 @@ TEMPLATE_CONTEXT_PROCESSORS = ( 'django.core.context_processors.request', ) TEMPLATE_DEBUG = DEBUG -TEMPLATE_DIRS = (os.path.join(PROJECT_PATH, 'templates')) +TEMPLATE_DIRS = ( + os.path.join(PROJECT_PATH, 'templates'), + ) DEBUG_TOOLBAR_PANELS = ( 'debug_toolbar.panels.version.VersionDebugPanel', 'debug_toolbar.panels.timer.TimerDebugPanel', @@ -48,4 +51,41 @@ DEBUG_TOOLBAR_PANELS = ( CACHE_BACKEND = 'dummy://' #CACHE_BACKEND = 'memcached://127.0.0.1:11211' +LOGGING = { + 'version': 1, + 'disable_existing_loggers': True, + 'formatters': { + 'verbose': { + 'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s' + }, + }, + 'handlers': { + 'null': { + 'level':'DEBUG', + 'class':'django.utils.log.NullHandler', + }, + 'console':{ + 'level':'DEBUG', + 'class':'logging.StreamHandler', + 'formatter': 'verbose' + }, + }, + 'loggers': { + 'django': { + 'handlers':['null'], + 'propagate': True, + 'level':'INFO', + }, + 'django.request': { + 'handlers': ['console'], + 'level': 'ERROR', + 'propagate': False, + }, + 'django.db.backends': { + 'handlers': ['console'], + 'level': 'DEBUG', + 'propagate': False, + }, + } +} |
