# Path: mysmile/settings/base.py
# BASE_DIR = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), '..')


import os
from mysmile.settings.base import BASE_DIR

# for example: ALLOWED_HOSTS = ['mysite.com']
ALLOWED_HOSTS = ['demo.mysmile.com.ua']

# Enter path to media folder on server.
MEDIA_ROOT = ''

# Enter path to static folder on server.
STATIC_ROOT = ''

COMPRESS_ROOT = STATIC_ROOT


ADMINS = (
    ('admin', 'support@mysmile.com.ua'),
)

MANAGERS = (
    ('admin', 'support@mysmile.com.ua'),
)

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
SERVER_EMAIL = 'mail@mysite.com'
DEFAULT_FROM_EMAIL = SERVER_EMAIL
EMAIL_SUBJECT_PREFIX = 'something like [MYSITE]'
EMAIL_HOST = 'adress of IMAP server'
EMAIL_HOST_USER = 'mail@mysite.com'
EMAIL_HOST_PASSWORD = 'password to email'

EMAIL_USE_SSL = True

# Path: mysmile/settings/base.py
# BASE_DIR = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), '..')


# Path: config/production.py
import os
from mysmile.settings.base import BASE_DIR


# for example: ALLOWED_HOSTS = ['mysite.com']
ALLOWED_HOSTS = ['demo.mysmile.com.ua']

# Enter path to media folder on server.
MEDIA_ROOT = ''

# Enter path to static folder on server.
STATIC_ROOT = ''

COMPRESS_ROOT = STATIC_ROOT


ADMINS = (
    ('admin', 'support@mysmile.com.ua'),
)

MANAGERS = (
    ('admin', 'support@mysmile.com.ua'),
)

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
SERVER_EMAIL = 'mail@mysite.com'
DEFAULT_FROM_EMAIL = SERVER_EMAIL
EMAIL_SUBJECT_PREFIX = 'something like [MYSITE]'
EMAIL_HOST = 'adress of IMAP server'
EMAIL_HOST_USER = 'mail@mysite.com'
EMAIL_HOST_PASSWORD = 'password to email'

EMAIL_USE_SSL = True

EMAIL_PORT = 465