old_contents: from pinry.settings import *
  
  import os
  
  
  DEBUG = False
  TEMPLATE_DEBUG = DEBUG
  
  # TODO: I recommend using psycopg2 w/ postgres but sqlite3 is good enough.
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': os.path.join(SITE_ROOT, 'production.db'),
      }
  }
  
  # TODO: Be sure to set this.
  SECRET_KEY = ''
  
new_contents: from pinry.settings import *
  
  import os
  
  
  DEBUG = False
  TEMPLATE_DEBUG = DEBUG
  
  # TODO: I recommend using psycopg2 w/ postgres but sqlite3 is good enough.
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': os.path.join(SITE_ROOT, 'production.db'),
      }
  }
  
  # TODO: Be sure to set this.
  SECRET_KEY = ''
  
  LOGGING = {
      'version': 1,
      'disable_existing_loggers': False,
      'handlers': {
          # Include the default Django email handler for errors
          # This is what you'd get without configuring logging at all.
          'mail_admins': {
              'class': 'django.utils.log.AdminEmailHandler',
              'level': 'ERROR',
               # But the emails are plain text by default - HTML is nicer
              'include_html': True,
          },
          # Log to a text file that can be rotated by logrotate
          'logfile': {
              'class': 'logging.handlers.WatchedFileHandler',
              'filename': '/var/log/django/xishi.log'
          },
      },
      'loggers': {
          # Again, default Django configuration to email unhandled exceptions
          'django.request': {
              'handlers': ['mail_admins'],
              'level': 'ERROR',
              'propagate': True,
          },
          # Might as well log any errors anywhere else in Django
          'django': {
              'handlers': ['logfile'],
              'level': 'ERROR',
              'propagate': False,
          },
          # Your own app - this assumes all your logger names start with "myapp."
          'myapp': {
              'handlers': ['logfile'],
              'level': 'WARNING', # Or maybe INFO or DEBUG
              'propagate': False
          },
      },
  }
subject: add logger