# Path: lizard_ui/settingshelper.py
# def setup_logging(buildout_dir,
#                   console_level='DEBUG',
#                   file_level='WARN',
#                   sentry_level=None,
#                   sql=False):
#     """Return configuration dict for logging.
# 
#     Some keyword arguments can be used to configure the logging.
# 
#     - ``console_level='DEBUG'`` sets the console level. None means quiet.
# 
#     - ``file_level='WARN'`` sets the var/log/django.log level. None means
#       quiet.
# 
#     - ``sentry_level=None`` sets the sentry level. None means sentry logging
#         is removed from the logging.
# 
#     - ``sql=False`` switches sql statement logging on or off.
# 
#     """
#     result = {
#         'version': 1,
#         'disable_existing_loggers': True,
#         'formatters': {
#             'verbose': {
#                 'format': '%(asctime)s %(name)s %(levelname)s\n%(message)s',
#                 },
#             'simple': {
#                 'format': '%(levelname)s %(message)s'
#                 },
#             },
#         'handlers': {
#             'null': {
#                 'level': 'DEBUG',
#                 'class': 'django.utils.log.NullHandler',
#                 },
#             'console': {
#                 'level': console_level,
#                 'class': 'logging.StreamHandler',
#                 'formatter': 'simple'
#                 },
#             'logfile': {
#                 'level': file_level,
#                 'class': 'logging.FileHandler',
#                 'formatter': 'verbose',
#                 'filename': os.path.join(buildout_dir,
#                                          'var', 'log', 'django.log'),
#                 },
#             'sentry': {
#                 'level': sentry_level,
#                 'class': 'raven.contrib.django.handlers.SentryHandler',
#                 },
#             },
#         'loggers': {
#             '': {
#                 'handlers': [],
#                 'propagate': True,
#                 'level': 'DEBUG',
#                 },
#             'django.db.backends': {
#                 'handlers': ['null'],  # Quiet by default!
#                 'propagate': False,
#                 'level': 'DEBUG',
#                 },
#             },
#         }
#     if console_level is not None:
#         result['loggers']['']['handlers'].append('console')
#     if file_level is not None:
#         result['loggers']['']['handlers'].append('logfile')
#     if sentry_level is not None:
#         result['loggers']['']['handlers'].append('sentry')
#     else:
#         # When sentry is still in the handlers sentry needs to be installed
#         # which gave import errors in Django 1.4.
#         del result['handlers']['sentry']
#     if sql:
#         result['loggers']['django.db.backends']['handlers'] = [
#             'console', 'logfile']
#     return result
# 
# Path: lizard_ui/settingshelper.py
# STATICFILES_FINDERS = (
#     'django.contrib.staticfiles.finders.FileSystemFinder',
#     'django.contrib.staticfiles.finders.AppDirectoriesFinder',
#     # Enable support for django-compressor.
#     'compressor.finders.CompressorFinder',
#     )


import os
from lizard_ui.settingshelper import setup_logging
from lizard_ui.settingshelper import STATICFILES_FINDERS


DEBUG = True
TEMPLATE_DEBUG = True
DATABASES = {
    'default': {'ENGINE': 'django.db.backends.sqlite3',
                'NAME': 'test.db'},
    }
SITE_ID = 1
INSTALLED_APPS = [
    'lizard_ui',
    'south',
    'compressor',
    'django.contrib.staticfiles',
    'lizard_security',
    'django_extensions',
    'django_nose',
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    ]

SENTRY_SERVERS = ('http://1ea687a6dc894fa5bd7bc35b578c1dc0:913530819af3428b85fa6a0a7124dbe9@sentry.lizardsystem.nl/1')

ROOT_URLCONF = 'lizard_ui.urls'


# Path: lizard_ui/settingshelper.py
# def setup_logging(buildout_dir,
#                   console_level='DEBUG',
#                   file_level='WARN',
#                   sentry_level=None,
#                   sql=False):
#     """Return configuration dict for logging.
# 
#     Some keyword arguments can be used to configure the logging.
# 
#     - ``console_level='DEBUG'`` sets the console level. None means quiet.
# 
#     - ``file_level='WARN'`` sets the var/log/django.log level. None means
#       quiet.
# 
#     - ``sentry_level=None`` sets the sentry level. None means sentry logging
#         is removed from the logging.
# 
#     - ``sql=False`` switches sql statement logging on or off.
# 
#     """
#     result = {
#         'version': 1,
#         'disable_existing_loggers': True,
#         'formatters': {
#             'verbose': {
#                 'format': '%(asctime)s %(name)s %(levelname)s\n%(message)s',
#                 },
#             'simple': {
#                 'format': '%(levelname)s %(message)s'
#                 },
#             },
#         'handlers': {
#             'null': {
#                 'level': 'DEBUG',
#                 'class': 'django.utils.log.NullHandler',
#                 },
#             'console': {
#                 'level': console_level,
#                 'class': 'logging.StreamHandler',
#                 'formatter': 'simple'
#                 },
#             'logfile': {
#                 'level': file_level,
#                 'class': 'logging.FileHandler',
#                 'formatter': 'verbose',
#                 'filename': os.path.join(buildout_dir,
#                                          'var', 'log', 'django.log'),
#                 },
#             'sentry': {
#                 'level': sentry_level,
#                 'class': 'raven.contrib.django.handlers.SentryHandler',
#                 },
#             },
#         'loggers': {
#             '': {
#                 'handlers': [],
#                 'propagate': True,
#                 'level': 'DEBUG',
#                 },
#             'django.db.backends': {
#                 'handlers': ['null'],  # Quiet by default!
#                 'propagate': False,
#                 'level': 'DEBUG',
#                 },
#             },
#         }
#     if console_level is not None:
#         result['loggers']['']['handlers'].append('console')
#     if file_level is not None:
#         result['loggers']['']['handlers'].append('logfile')
#     if sentry_level is not None:
#         result['loggers']['']['handlers'].append('sentry')
#     else:
#         # When sentry is still in the handlers sentry needs to be installed
#         # which gave import errors in Django 1.4.
#         del result['handlers']['sentry']
#     if sql:
#         result['loggers']['django.db.backends']['handlers'] = [
#             'console', 'logfile']
#     return result
# 
# Path: lizard_ui/settingshelper.py
# STATICFILES_FINDERS = (
#     'django.contrib.staticfiles.finders.FileSystemFinder',
#     'django.contrib.staticfiles.finders.AppDirectoriesFinder',
#     # Enable support for django-compressor.
#     'compressor.finders.CompressorFinder',
#     )


# Path: lizard_ui/testsettings.py
import os
from lizard_ui.settingshelper import setup_logging
from lizard_ui.settingshelper import STATICFILES_FINDERS



DEBUG = True
TEMPLATE_DEBUG = True
DATABASES = {
    'default': {'ENGINE': 'django.db.backends.sqlite3',
                'NAME': 'test.db'},
    }
SITE_ID = 1
INSTALLED_APPS = [
    'lizard_ui',
    'south',
    'compressor',
    'django.contrib.staticfiles',
    'lizard_security',
    'django_extensions',
    'django_nose',
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    ]

SENTRY_SERVERS = ('http://1ea687a6dc894fa5bd7bc35b578c1dc0:913530819af3428b85fa6a0a7124dbe9@sentry.lizardsystem.nl/1')

ROOT_URLCONF = 'lizard_ui.urls'


MIDDLEWARE_CLASSES = (