old_contents: from gigs.settings_base import *
  
  DEBUG = True
  TEMPLATE_DEBUG = True
  
  ADMINS = ()
  
  INSTALLED_APPS += (
      'gunicorn',
  )
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.mysql',
          'NAME': 'django',
          'OPTIONS':{
          'read_default_file':'/etc/tugg/my.cnf',
          },
      },
  }
  
  LOGGING = {
      'version': 1,
      'disable_existing_loggers': True,
      'formatters': {
          'standard': {
              'format': '%(asctime)s [%(levelname)s] %(name)s: %(message)s'
           },
      },
      'handlers': {
          'default': {
              'level':'DEBUG',
              'class':'logging.handlers.RotatingFileHandler',
              'filename': '/var/log/tugg/tugg.log',
              'maxBytes': 1024*1024*50, # 50 MB
              'backupCount': 5,
              'formatter':'standard',
              },
          'request_handler': {
              'level':'DEBUG',
              'class':'logging.handlers.RotatingFileHandler',
              'filename': '/var/log/tugg/tugg_request.log',
              'maxBytes': 1024*1024*50, # 5 MB
              'backupCount': 5,
              'formatter':'standard',
          },
      },
      'loggers': {
          '': {
              'handlers': ['default'],
              'level': 'DEBUG',
              'propagate': True
          },
          'django.request': {
              'handlers': ['request_handler'],
              'level': 'DEBUG',
              'propagate': False
          },
      },
  }
  
  
new_contents: from gigs.settings_base import *
  
  DEBUG = False
  TEMPLATE_DEBUG = False
  
  ADMINS = ()
  
  INSTALLED_APPS += (
      'gunicorn',
  )
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.mysql',
          'NAME': 'django',
          'OPTIONS':{
          'read_default_file':'/etc/tugg/my.cnf',
          },
      },
  }
  
  LOGGING = {
      'version': 1,
      'disable_existing_loggers': True,
      'formatters': {
          'standard': {
              'format': '%(asctime)s [%(levelname)s] %(name)s: %(message)s'
           },
      },
      'handlers': {
          'default': {
              'level':'DEBUG',
              'class':'logging.handlers.RotatingFileHandler',
              'filename': '/var/log/tugg/tugg.log',
              'maxBytes': 1024*1024*50, # 50 MB
              'backupCount': 5,
              'formatter':'standard',
              },
          'request_handler': {
              'level':'DEBUG',
              'class':'logging.handlers.RotatingFileHandler',
              'filename': '/var/log/tugg/tugg_request.log',
              'maxBytes': 1024*1024*50, # 5 MB
              'backupCount': 5,
              'formatter':'standard',
          },
      },
      'loggers': {
          '': {
              'handlers': ['default'],
              'level': 'DEBUG',
              'propagate': True
          },
          'django.request': {
              'handlers': ['request_handler'],
              'level': 'DEBUG',
              'propagate': False
          },
      },
  }
  
  
subject: remove debug stuff from production settings (introduced fbcd4c6a6b0714962b19841b40439bad7d897089)