diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-06-11 18:31:55 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-06-11 18:31:55 +0200 |
commit | a03552fe269095fe521106c561c470f774e41909 (patch) | |
tree | 15e04c15041d7a04a810b7d30fbe1ccfd4559fa9 /example_project/settings.py | |
parent | 6fc9685d8f5092c7df325f5d8a6caca1f5aa9ebc (diff) | |
download | Ishtar-a03552fe269095fe521106c561c470f774e41909.tar.bz2 Ishtar-a03552fe269095fe521106c561c470f774e41909.zip |
Operations: work on import
Diffstat (limited to 'example_project/settings.py')
-rw-r--r-- | example_project/settings.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/example_project/settings.py b/example_project/settings.py index bb7a59d74..0aaeb306d 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -4,6 +4,8 @@ import os +SQL_DEBUG = False + ROOT_PATH = os.path.abspath(os.path.curdir) + os.path.sep STATIC_URL = '/static/' STATIC_ROOT = ROOT_PATH + 'static/' @@ -125,6 +127,10 @@ LOGGING = {'version': 1, 'class': 'logging.handlers.WatchedFileHandler', 'filename': '/var/log/django/ishtar.log' }, + 'console':{ + 'level': 'DEBUG', + 'class': 'logging.StreamHandler', + }, }, 'loggers': { # Again, default Django configuration to email unhandled exceptions @@ -197,3 +203,9 @@ import sys if 'test' in sys.argv or 'test_coverage' in sys.argv: DATABASES['default']['engine'] = 'sqlite3' + +if SQL_DEBUG: + LOGGING['loggers']['django.db.backends'] = { + 'level': 'DEBUG', + 'handlers': ['console'], + } |