import os, logging

BASE_DIR = os.path.dirname(os.path.abspath(__file__))
BASE_URL = '/~ymh/blinkster/'
WEB_URL = 'http://localhost'
MEDIA_BASE_URL = BASE_URL + 'static/media/'
STREAM_URL = MEDIA_BASE_URL + "/content/"

# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
# MEDIA_ROOT = os.path.abspath(BASE_DIR + "../static/")

# 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_BASE_URL

CONTENT_ROOT = MEDIA_ROOT + "media/content/"

# 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 = '/media/'

DATABASE_ENGINE = 'postgresql_psycopg2'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = 'blinkster'             # Or path to database file if using sqlite3.
DATABASE_USER = 'iri'             # Not used with sqlite3.
DATABASE_PASSWORD = 'iri'         # 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.


DEBUG = True
TEMPLATE_DEBUG = DEBUG

LOG_FILE = os.path.join(BASE_DIR,"../log/log.txt")
LOG_LEVEL = logging.DEBUG

INDEX_PATH = os.path.abspath(BASE_DIR + "/../index/")


ADMINS = (
    # ('Your Name', 'your_email@domain.com'),
)

MANAGERS = ADMINS


