# -*- coding: utf-8 -*-
import os

ROOT = os.path.abspath(os.path.dirname(__file__))
path = lambda *args: os.path.join(ROOT, *args)

""" Template for local settings of the FST webservice (fst_web)

Please edit this file and replace all generic values with values suitable to
your particular installation.
"""

# NOTE! Always set this to False before deploying
DEBUG = True

# NOTE! Before deploying on a public, uncomment ALLOWED_HOSTS
# and add IP address and/or domain of your site
ALLOWED_HOSTS = ['localhost', '127.0.0.1', 'fst.magokoro.nu']

# Look for instance-specific settings
try:
    from .instance_settings import *
except ImportError:
    from .default_instance_settings import *

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': path('database/fst_demo.db')
    }
}

LOG_LEVEL = "DEBUG"

# Enable this to override global DB Debug setting
# DB_DEBUG_LEVEL = "DEBUG"

# Setup mail server for sending email notifications.
# You can use any mail server you want.
# But a very simple way to get started is to use a gmail account.
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
# EMAIL_HOST_USER = 'your email'
# EMAIL_HOST_PASSWORD = 'your password'

# Admins specified here receive email notifications on critical errors.
ADMINS = ()

MANAGERS = ADMINS

# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash.
# Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
MEDIA_URL = os.path.join("/dokument/")

# Site and port for hosting FST service (do not add ending '/').
FST_SITE_URL = "http://127.0.0.1:8000"

# TODO - Check if FST_INSTANCE_PREFIX can be removed
# Site and port of specific FST instance (do not add ending '/').
FST_INSTANCE_URL = os.path.join(
    "http://127.0.0.1:8000",
    FST_INSTANCE_PREFIX)

[(55, 'os.path.join', 'os.path.join', False, 'import os\n'), (62, 'os.path.join', 'os.path.join', False, 'import os\n'), (4, 'os.path.dirname', 'os.path.dirname', False, 'import os\n'), (5, 'os.path.join', 'os.path.join', False, 'import os\n')]