title: No handlers could be found for logger
body: <p>I am newbie to Django.I am trying for Django logging now.  While trying,I am getting this error <strong>["No handlers could be found for logger "sample" "]</strong>..here is my code,</p>
  
  <p>(In my settings.py)</p>
  
  <pre><code>LOGGING = {
      'version': 1,
      'disable_existing_loggers': False,
      'formatters': {
          'simple': {
              'format': '%(asctime)s %(levelname)s %(name)s %(message)s'
          },
      },
      'handlers': {
          'default': {
              'level':'DEBUG',
              'class':'logging.handlers.RotatingFileHandler',
              'filename': '/home/linuxuser/mani/f/logs/msg.log',
              'maxBytes': 1024*1024*5, # 5 MB
              'backupCount': 5,
              'formatter':'simple',
          },
      },
      'loggers': {
          'sample': {
              'handlers': ['default'],
              'level': 'DEBUG',
              'propagate': True,
          },
      }
  }
  </code></pre>
  
  <p>(In my views.py)</p>
  
  <pre><code>import logging
  import logging.handlers
  from django.conf import settings
  logger = logging.getLogger('sample')
  
  def empdel(request,id):
      e = get_object_or_404(emp, pk=id)
      e.delete()
      logger.info('A row is deleted successfully !!!')
      return HttpResponseRedirect('/empthanks/')
  </code></pre>
  
  <p>While running this code, i got this error ie <strong>["No handlers could be found for logger "sample" "]</strong>.. Whats wrong with my code? Why i am getting such a error even i am using handler in LOGGING? and also i am trying to save log message into the file that i have used in LOGGING...any idea?? Thanks in advance !!!</p>