# Django settings for azusite project.

import os

DEBUG = True
TEMPLATE_DEBUG = DEBUG
DEVELOPMENT = DEBUG

ADMINS = (
    ('Lukas Kolbe', 'lukas@einfachkaffee.de')
)

BASE = '/sites/einfachkaffee.de/apps/azusite/'

MANAGERS = ADMINS

DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = 'azudb.sqlite'             # Or path to database file if using sqlite3.
DATABASE_USER = ''             # Not used with sqlite3.
DATABASE_PASSWORD = ''         # Not used with sqlite3.
DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.

TIME_ZONE = 'Europe/Berlin'

# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'de-de'

SITE_ID = 2

# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True

# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = os.path.join(BASE,'media')

# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = '/media/'

# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/admin-media/'

# Make this unique, and don't share it with anybody.
SECRET_KEY = '(h9lbeb&ku7jocv!ft+%cew4opded32uy^+46iutnp)h@+ox6j'

# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
)

TEMPLATE_CONTEXT_PROCESSORS = (
    'django.core.context_processors.auth',
    'django.core.context_processors.debug',
    'django.core.context_processors.i18n',
    'django.core.context_processors.media',
    'django.core.context_processors.request',
    'efktools.context.defaults',
)
MIDDLEWARE_CLASSES = (
    "django.contrib.csrf.middleware.CsrfMiddleware",
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    "django.middleware.http.ConditionalGetMiddleware",
    "django.middleware.doc.XViewMiddleware",
    "django.contrib.flatpages.middleware.FlatpageFallbackMiddleware",
    "django.contrib.redirects.middleware.RedirectFallbackMiddleware",
)

ROOT_URLCONF = 'azusite.urls'

TEMPLATE_DIRS = (
     os.path.join(BASE,'templates'),
)

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',
    'django.contrib.flatpages',
    'django.contrib.redirects',
    'django.contrib.markup',
    'django.contrib.sitemaps',
    'efktools.menu',
    'azusite.cartrade',
)

DEFAULT_FROM_EMAIL = 'webmaster@einfachkaffee.de'
EMAIL_HOST = 'localhost'
EMAIL_SUBJECT_PREFIX = '[Django] '
SERVER_EMAIL = 'django@einfachkaffee.de'

COMMENT_MAX_LENGTH = 65536
COMMENTS_ALLOW_PROFANITIES = True


