# -*- coding: utf-8 -*-
DEBUG = False
TEMPLATE_DEBUG = DEBUG

ADMINS = (
    ('Javi Manzano', 'javi.manzano.oller@gmail.com'),
)

MANAGERS = ADMINS

ALLOWED_HOSTS = ['176.58.120.22', 'fuzzingtheweb.com']

TIME_ZONE = 'Europe/London'
USE_TZ = True
LANGUAGE_CODE = 'en-gb'
SITE_ID = 1
USE_I18N = True
USE_L10N = True
MEDIA_ROOT = '/home/ubuntu/media/'
MEDIA_URL = '/static/media/'
STATIC_ROOT = '/static/'
STATIC_URL = '/static/'
ADMIN_MEDIA_PREFIX = '/static/admin/'

STATICFILES_DIRS = (
    # Put strings here, like "/home/html/static" or "C:/www/django/static".
    # Always use forward slashes, even on Windows.
    # Don't forget to use absolute paths, not relative paths.
)

STATICFILES_FINDERS = (
    'django.contrib.staticfiles.finders.FileSystemFinder',
    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
)

MARKITUP_FILTER = ('markdown.markdown', {'safe_mode': True})

SECRET_KEY = '%3maeu=guk3p#67j-2--drhy$*^vx+=l9r9bltk-n-^cw4#nic'

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 = 'urls'

TEMPLATE_DIRS = (
    '/home/ubuntu/django_apps/fuzzopress/blog/templates',
)

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.admin',
    'django.contrib.markup',
    'blogadmin',
    'markitup',
    'south',
    'blog',
)

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,
        },
    }
}

MARKITUP_SET = 'markitup/sets/markdown'

# Settings for main blog app
FUZZOPRESS_SETTINGS = {
    'contact': [
        {
            'name': 'github',
            'icon': 'icon-github-alt',
            'url': 'https://github.com/jgasteiz',
            'show': True,
        },
        {
            'name': 'twitter',
            'icon': 'icon-twitter',
            'url': 'https://twitter.com/jgasteiz',
            'show': True,
        },
        {
            'name': 'googleplus',
            'icon': 'icon-google-plus-sign',
            'url': 'https://plus.google.com/u/0/104971241169939266087/posts',
            'show': True,
        },
        {
            'name': 'email',
            'icon': 'icon-envelope-alt',
            'url': 'mailto:javi.manzano.oller@gmail.com',
            'show': True,
        }
    ],
    'analytics': {
        'show': True,
        'code': 'UA-23612418-1'
    },
    'tags': {
        'show': True
    },
    'archive': {
        'show': True
    },
    'finder': {
        'show': True
    },
    'entries_per_page': 5
}


try:
    from local_settings import *
except ImportError:
    pass
