#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Django settings for letts_me project.

For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/

ADMINS = (
    ("Admin", "example@example.com"),
    )

# Application definition

INSTALLED_APPS = (
    'grappelli',
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'compressor',
    'links',
    'blog',
    'frontpage',
    'projects',
    'fontawesome',
)

MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
)

ROOT_URLCONF = 'letts_me.urls'
WSGI_APPLICATION = 'letts_me.wsgi.application'

# TEMPLATES
TEMPLATE_DIRS = (
    os.path.abspath(os.path.join(BASE_DIR,'templates')),
)
# Default (supposedly) TCP
TEMPLATE_CONTEXT_PROCESSORS = (
    'django.contrib.auth.context_processors.auth',
    'django.core.context_processors.debug',
    'django.core.context_processors.i18n',
    'django.core.context_processors.request',
    'django.core.context_processors.static',
    'django.contrib.messages.context_processors.messages',
)
TEMPLATE_CONTEXT_PROCESSORS += (
    "django.core.context_processors.request",
    "letts_me.context_processors.site_title",    
    "letts_me.context_processors.social_media",    
)



# Internationalization
# https://docs.djangoproject.com/en/1.7/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.7/howto/static-files/

STATICFILES_DIRS= (
        os.path.abspath(os.path.join(BASE_DIR,"static") ),
        )
STATICFILES_FINDERS = (
    'django.contrib.staticfiles.finders.FileSystemFinder',
    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
    'compressor.finders.CompressorFinder',)
STATIC_URL = '/static/'
MEDIA_URL = '/media/'

# Static File Optimization


HTML_MINIFY = True
MIDDLEWARE_CLASSES += (
    'htmlmin.middleware.HtmlMinifyMiddleware',
    'htmlmin.middleware.MarkRequestMiddleware',
)
KEEP_COMMENTS_ON_MINIFYING = True

# SITE_TEMPLATE_CONSTANTS
SITE_TITLE = 'Personal Website'
GITHUB_PROFILE = None
INSTAGRAM_PROFILE = None
TWITTER_PROFILE = None
FACEBOOK_PROFILE = None

# FONTAWESOME

FONTAWESOME_CSS_URL = "static/alpha/css/font-awesome.min.css"
