from common import *

DEBUG = False
# Start up logging to the console

logging.getLogger("").addHandler(FILE_HANDLER)
logging.getLogger("keyedcache").setLevel(logging.INFO)
logging.info("weeklypacket.com Started")

# CACHE_BACKEND = 'memcached://127.0.0.1:11211/'
# CACHE_MIDDLEWARE_SECONDS = 10
#
# DATABASE_HOST='bradbury'
# DATABASE_ENGINE = 'postgresql_psycopg2'
# DATABASE_NAME = 'pbp'
# DATABASE_USER = 'pbp'
# DATABASE_PASSWORD = 'P3Prnwb'
CACHE_MIDDLEWARE_SECONDS = 10
CACHES = {
    "default": {
        "BACKEND": "django.core.cache.backends.memcached.MemcachedCache",
        "LOCATION": "127.0.0.1:11211",
    }
}

DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.postgresql_psycopg2",
        "NAME": "pbp",
        "USER": "pbp",
        "PASSWORD": "P3Prnwb",
        "HOST": "localhost",
        "PORT": "",
    }
}

# MEDIA_ROOT=os.path.join(PROJECT_ROOT, 'media/')
MEDIA_URL = "https://penobscotbaypress.com/media/"
ADMIN_MEDIA_PREFIX = MEDIA_URL + "admin/"

TEMPLATE_DIRS = (
    "/var/lib/django/pbp_com/templates/wp",
    "/var/lib/django/pbp_com/templates",
)

# API key is for penobscotbaypress.com
GOOGLE_API_KEY = "ABQIAAAATux_aKmAEX7DnojAr8SqlRTyl9CS5q3L9FIn7JSvfaKvyESzUhR20N-9Pqstiw45F-wXH6msAoVaKw"

##### For Email ########
ACCOUNT_ACTIVATION_DAYS = 15
# EMAIL_HOST="smtp.3ip.net"
# EMAIL_HOST_USER="cpowell@penobscotbaypress.com"
# EMAIL_HOST_PASSWORD="cpow07"
# DEFAULT_FROM_EMAIL="cpowell@penobscotbaypress.com"
# EMAIL_USE_TLS = True
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
EMAIL_HOST = "secure.emailsrvr.com"
EMAIL_HOST_USER = "jeremiahs@pbp.me"
EMAIL_HOST_PASSWORD = "abigaiL03"
DEFAULT_FROM_EMAIL = "jeremiahs@pbp.me"
EMAIL_USE_TLS = True
