from django.conf import settings import logging logger = logging.getLogger('Lodel2.Database') logger.debug('Foobar')