text: from unipath import Path  # Avoid pyflake complains
  
  from .base import *  # noqa
  from .base import LOGGING  # Avoid pyflakes complains
  
  DEBUG = False
  
  # ######### IN-MEMORY TEST DATABASE
  SQLITE = {
      "default": {
          "ENGINE": "django.db.backends.sqlite3",
          "NAME": ":memory:",
          "USER": "",
          "PASSWORD": "",
          "HOST": "",
          "PORT": "",
      },
  }
  
  PG = {
      'default': {
          'ENGINE': 'django.db.backends.postgresql_psycopg2',
          'NAME': 'phase_test',
          'USER': 'phase',
          'PASSWORD': 'phase',
          'HOST': 'localhost',
          'PORT': '',
      }
  }
  
  DATABASES = PG
  
  SEND_EMAIL_REMINDERS = True
  SEND_NEW_ACCOUNTS_EMAILS = True
  
  # ######### CACHE CONFIGURATION
  # This is the default value, but we redefine it because
  # explicit is better than implicit.
  CACHES = {
      'default': {
          'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
          'LOCATION': 'unique-snowflake',
      }
  }
  
  # We need a different media root so we can wipe it securely in tests
  MEDIA_ROOT = '/tmp/phase_media/'
  PROTECTED_ROOT = '/tmp/phase_media/phase_test_protected/'
  PRIVATE_ROOT = '/tmp/phase_media/phase_test_private/'
  
  STATICFILES_STORAGE = 'pipeline.storage.NonPackagingPipelineStorage'
  
  ELASTIC_INDEX = 'test_documents'
  ELASTIC_AUTOINDEX = False
  
  # Makes Celery working synchronously and in memory
  CELERY_ALWAYS_EAGER = True
  BROKER_URL = "memory://"
  CELERY_CACHE_BACKEND = "memory"
  CELERY_RESULT_BACKEND = "cache"
  
  LOGGING['loggers']['elasticsearch'] = {
      'handlers': ['console', 'syslog', 'mail_admins'],
      'level': 'ERROR',
      'propagate': False,
  }
  LOGGING['loggers']['elasticsearch.trace'] = {
      'handlers': ['console', 'syslog', 'mail_admins'],
      'level': 'ERROR',
      'propagate': False,
  }
  LOGGING['loggers'][''] = {
      'handlers': ['null'],
      'level': 'DEBUG',
      'propagate': False,
  }
  
  TRS_IMPORTS_ROOT = Path('/tmp/test_ctr_clt')
  
  TRS_IMPORTS_CONFIG = {
      'test': {
          'INCOMING_DIR': TRS_IMPORTS_ROOT.child('incoming'),
          'REJECTED_DIR': TRS_IMPORTS_ROOT.child('rejected'),
          'TO_BE_CHECKED_DIR': TRS_IMPORTS_ROOT.child('tobechecked'),
          'ACCEPTED_DIR': TRS_IMPORTS_ROOT.child('accepted'),
          'EMAIL_LIST': ['test@phase.fr'],
      }
  }
  
  SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
  
  
  try:
      from .test_private import *  # noqa
  except ImportError:
      pass
  