old_contents: # Django settings for test_project project.
  
  DEBUG = True
  TEMPLATE_DEBUG = DEBUG
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': 'temp.db',
      }
  }
  
  STATIC_URL = '/static/'
  STATICFILES_FINDERS = (
      'django.contrib.staticfiles.finders.FileSystemFinder',
      'django.contrib.staticfiles.finders.AppDirectoriesFinder',
  )
  SECRET_KEY = 't8vl&nd*x5*#vtgn7@@t11n3ve0+hbs)6z2hn&@s_)ityxqv1^'
  TEMPLATE_LOADERS = (
      'django.template.loaders.filesystem.Loader',
      'django.template.loaders.app_directories.Loader',
  )
  MIDDLEWARE_CLASSES = (
      'django.middleware.common.CommonMiddleware',
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
  )
  
  ROOT_URLCONF = 'test_project.urls'
  
  INSTALLED_APPS = (
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'django.contrib.admin',
  
      'pyuploadcare.dj',
  
      'gallery',
  )
  
  LOGGING = {
      'version': 1,
      'disable_existing_loggers': False,
      'handlers': {
          'mail_admins': {
              'level': 'ERROR',
              'class': 'django.utils.log.AdminEmailHandler'
          }
      },
      'loggers': {
          'django.request': {
              'handlers': ['mail_admins'],
              'level': 'ERROR',
              'propagate': True,
          },
      }
  }
  
  
  # upload care stuff starts here
  # NB: files uploaded by demo account are removed daily, use it to fool around or
  #     signup on https://uploadcare.com to get your own keys.
  UPLOADCARE = {
      'pub_key': 'demopublickey',
      'secret': 'demoprivatekey',
  }
  
  #PYUPLOADCARE_USE_HOSTED_ASSETS = False
  #PYUPLOADCARE_WIDGET_URL = 'http://static.example.com/widget.js'
  #PYUPLOADCARE_UPLOAD_BASE_URL = 'http://other.upload.handler/'
  
new_contents: # Django settings for test_project project.
  
  DEBUG = True
  TEMPLATE_DEBUG = DEBUG
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': 'temp.db',
      }
  }
  
  STATIC_URL = '/static/'
  STATICFILES_FINDERS = (
      'django.contrib.staticfiles.finders.FileSystemFinder',
      'django.contrib.staticfiles.finders.AppDirectoriesFinder',
  )
  SECRET_KEY = 't8vl&nd*x5*#vtgn7@@t11n3ve0+hbs)6z2hn&@s_)ityxqv1^'
  TEMPLATE_LOADERS = (
      'django.template.loaders.filesystem.Loader',
      'django.template.loaders.app_directories.Loader',
  )
  MIDDLEWARE_CLASSES = (
      'django.middleware.common.CommonMiddleware',
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
  )
  
  ROOT_URLCONF = 'test_project.urls'
  
  INSTALLED_APPS = (
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'django.contrib.admin',
  
      'pyuploadcare.dj',
  
      'gallery',
  )
  
  LOGGING = {
      'version': 1,
      'disable_existing_loggers': False,
      'filters': {
          'require_debug_false': {
              '()': 'django.utils.log.RequireDebugFalse',
          }
      },
      'handlers': {
          'mail_admins': {
              'level': 'ERROR',
              'class': 'django.utils.log.AdminEmailHandler',
              'filters': ['require_debug_false'],
          }
      },
      'loggers': {
          'django.request': {
              'handlers': ['mail_admins'],
              'level': 'ERROR',
              'propagate': True,
          },
      }
  }
  
  
  # upload care stuff starts here
  # NB: files uploaded by demo account are removed daily, use it to fool around or
  #     signup on https://uploadcare.com to get your own keys.
  UPLOADCARE = {
      'pub_key': 'demopublickey',
      'secret': 'demoprivatekey',
  }
  
  #PYUPLOADCARE_USE_HOSTED_ASSETS = False
  #PYUPLOADCARE_WIDGET_URL = 'http://static.example.com/widget.js'
  #PYUPLOADCARE_UPLOAD_BASE_URL = 'http://other.upload.handler/'
  
subject: improve settings.py a bit