~newz/awstrial/alternate-cloud-config

« back to all changes in this revision

Viewing changes to awstrial/settings.py

  • Committer: Matthew Nuzum
  • Date: 2011-10-31 19:34:54 UTC
  • mfrom: (270.1.4 trunk)
  • Revision ID: matthew.nuzum@canonical.com-20111031193454-znyojtca7fma6a8b
Reconfiguring logging

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import os
 
2
import sys
2
3
 
3
4
try:
4
5
    import ubuntu_website
221
222
    }       
222
223
}
223
224
 
224
 
logger = logging.getLogger('root')
225
 
logger.info('Starting awstrial...')
 
225
is_interactive = ('manage.py' in sys.argv[0]) if sys.argv else False
 
226
if is_interactive:
 
227
    # disable logging since we're using the ./manage.py from the shell
 
228
    # in order to prevent permission problems when multiple users
 
229
    # access the same log
 
230
    LOGGING_CONFIG = None
226
231
 
227
232
# vi: ts=4 expandtab