<filename>testsuite/settings.py
import os
import sys

ROOT_DIR = os.path.dirname(os.path.abspath(__file__))

DEBUG = True

SECRET_KEY = 'foobar'

MEDIA_URL = '/media/'

MEDIA_ROOT = os.path.join(ROOT_DIR, 'media')

TEMPLATE_DIRS = [os.path.join(ROOT_DIR, 'templates')]

ROOT_URLCONF = 'testsuite.urls'

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': ':memory:',
    },
}

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
    },
}

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.admin',
    'restthumbnails',
    'testsuite')

LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'handlers': {
        'console': {
            'class':'logging.StreamHandler',
            'level':'DEBUG',
        },
    },
    'loggers': {
        '': {
            'handlers': ['console'],
            'level': 'DEBUG',
        },
    }
}

#THUMBNAILS_RESPONSE_BACKEND = 'restthumbnails.responses.nginx.sendfile'
#THUMBNAILS_RESPONSE_BACKEND = 'restthumbnails.responses.apache.sendfile'

THUMBNAILS_STORAGE_BACKEND = 'testsuite.storages.TemporaryStorage'
THUMBNAILS_STORAGE_ROOT = os.path.join(MEDIA_ROOT, '..', 'thumbnails')
