diff gpp/settings.py @ 316:767cedc7d12a

Fixing #144; integrate with new Django logging support. Also added unit tests for Donations app.
author Brian Neal <bgneal@gmail.com>
date Sun, 30 Jan 2011 20:02:32 +0000
parents 88b2b9cb8c1f
children 2934a867c2ef
line wrap: on
line diff
--- a/gpp/settings.py	Sat Jan 29 20:39:55 2011 +0000
+++ b/gpp/settings.py	Sun Jan 30 20:02:32 2011 +0000
@@ -3,7 +3,6 @@
 import os
 import platform
 from decimal import Decimal
-import logging
 
 import local_settings
 
@@ -251,11 +250,7 @@
 # Configure Logging
 #######################################################################
 
-logging.basicConfig(
-        filename=os.path.join(project_path, 'logs', 'gpp.log'),
-        filemode='a',
-        format='%(asctime)s %(levelname)s %(message)s',
-        level=local_settings.LOG_LEVEL)
+LOGGING = local_settings.LOGGING
 
 #######################################################################
 # Django Debug Toolbar