# -*- coding: utf-8 -*-

"""
Django settings for monk project.

Generated by 'django-admin startproject' using Django 1.8.3.

For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
MEDIA_ROOT = os.path.join(BASE_DIR, "media",)
MEDIA_URL = '/media/'

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 's=b&1rh@tfmy@t+9rsxtkc)t^pa$yy5#6iq)lhn5p^)=!7hqe*'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []

SITE_ID = 1

# Application definition

INSTALLED_APPS = (
    # main app
    'accounts',
    'interview_track',
    'company',
    'interviewer',
    'monksite',

    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.sites',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',

    # third party apps
    'django_extensions',
    'registration',
    'rest_framework',
)

MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'django.middleware.security.SecurityMiddleware',
)

ROOT_URLCONF = 'monksite.urls'
LOGIN_URL = '/accounts/login'

TEMPLATE_DIRS = (
	os.path.join(BASE_DIR, "templates",),
)

TEMPLATE_LOADERS = (
	'django.template.loaders.filesystem.Loader',
	'django.template.loaders.app_directories.Loader',
)

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': TEMPLATE_DIRS,
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
                "django.core.context_processors.i18n",
                "django.core.context_processors.media",
            ],
        },
    },
]

WSGI_APPLICATION = 'monksite.wsgi.application'

# List of finder classes that know how to find static files in
# various locations.
STATICFILES_FINDERS = (
    "django.contrib.staticfiles.finders.FileSystemFinder",
    "django.contrib.staticfiles.finders.AppDirectoriesFinder",
#    'django.contrib.staticfiles.finders.DefaultStorageFinder',
)

# Database
# https://docs.djangoproject.com/en/1.8/ref/settings/#databases

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'monk',
        'USER': 'monk',
        'PASSWORD': 'monk',
    }
}


# Internationalization
# https://docs.djangoproject.com/en/1.8/topics/i18n/

LANGUAGE_CODE = 'zh-hans'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True

LOCALE_PATHS = (
    BASE_DIR + '/locale/',
)

LANGUAGES = (
    ('en', u'English'),
    ('zh-hans', u'简体中文'),  # instead of 'zh-CN'
    ('zh-tw', u'繁體中文'),  # instead of 'zh-TW'
)
LANGUAGE_COOKIE_NAME = 'django_language'


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.8/howto/static-files/

STATICFILES_DIRS = (
    os.path.join(BASE_DIR, "static"),
)

STATIC_URL = '/static/'

# Email Related
EMAIL_USE_TLS = False
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''

EMAIL_HOST = 'localhost'
EMAIL_PORT = 1025
#SERVER_EMAIL = 'devt@monk.com'
#DEFAULT_FROM_EMAIL = 'support@monk.com'


# Registration related
REGISTRATION_OPEN = True
ACCOUNT_ACTIVATION_DAYS = 180  # One-week activation window
REGISTRATION_AUTO_LOGIN = True  # Automatically log the user in.

URL_PREFIX = "http://localhost:8000"


REGISTRATION_DEFAULT_FROM_EMAIL = "admin@monk.com"

45e6f4c247f13518088ce2dad8011c28f4d4d106
<mask token>

<mask token>
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'
SECRET_KEY = 's=b&1rh@tfmy@t+9rsxtkc)t^pa$yy5#6iq)lhn5p^)=!7hqe*'
DEBUG = True
ALLOWED_HOSTS = []
SITE_ID = 1
INSTALLED_APPS = ('accounts', 'interview_track', 'company', 'interviewer',
    'monksite', 'django.contrib.admin', 'django.contrib.auth',
    'django.contrib.sites', 'django.contrib.contenttypes',
    'django.contrib.sessions', 'django.contrib.messages',
    'django.contrib.staticfiles', 'django_extensions', 'registration',
    'rest_framework')
MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'django.middleware.security.SecurityMiddleware')
ROOT_URLCONF = 'monksite.urls'
LOGIN_URL = '/accounts/login'
TEMPLATE_DIRS = os.path.join(BASE_DIR, 'templates'),
TEMPLATE_LOADERS = ('django.template.loaders.filesystem.Loader',
    'django.template.loaders.app_directories.Loader')
TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates',
    'DIRS': TEMPLATE_DIRS, 'APP_DIRS': True, 'OPTIONS': {
    'context_processors': ['django.template.context_processors.debug',
    'django.template.context_processors.request',
    'django.contrib.auth.context_processors.auth',
    'django.contrib.messages.context_processors.messages',
    'django.core.context_processors.i18n',
    'django.core.context_processors.media']}}]
WSGI_APPLICATION = 'monksite.wsgi.application'
STATICFILES_FINDERS = (
    'django.contrib.staticfiles.finders.FileSystemFinder',
    'django.contrib.staticfiles.finders.AppDirectoriesFinder')
DATABASES = {'default': {'ENGINE': 'django.db.backends.mysql', 'NAME':
    'monk', 'USER': 'monk', 'PASSWORD': 'monk'}}
LANGUAGE_CODE = 'zh-hans'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
LOCALE_PATHS = BASE_DIR + '/locale/',
LANGUAGES = ('en', u'English'), ('zh-hans', u'简体中文'), ('zh-tw', u'繁體中文')
LANGUAGE_COOKIE_NAME = 'django_language'
STATICFILES_DIRS = os.path.join(BASE_DIR, 'static'),
STATIC_URL = '/static/'
EMAIL_USE_TLS = False
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_HOST = 'localhost'
EMAIL_PORT = 1025
REGISTRATION_OPEN = True
ACCOUNT_ACTIVATION_DAYS = 180
REGISTRATION_AUTO_LOGIN = True
URL_PREFIX = 'http://localhost:8000'
REGISTRATION_DEFAULT_FROM_EMAIL = 'admin@monk.com'

<mask token>
import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'
SECRET_KEY = 's=b&1rh@tfmy@t+9rsxtkc)t^pa$yy5#6iq)lhn5p^)=!7hqe*'
DEBUG = True
ALLOWED_HOSTS = []
SITE_ID = 1
INSTALLED_APPS = ('accounts', 'interview_track', 'company', 'interviewer',
    'monksite', 'django.contrib.admin', 'django.contrib.auth',
    'django.contrib.sites', 'django.contrib.contenttypes',
    'django.contrib.sessions', 'django.contrib.messages',
    'django.contrib.staticfiles', 'django_extensions', 'registration',
    'rest_framework')
MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'django.middleware.security.SecurityMiddleware')
ROOT_URLCONF = 'monksite.urls'
LOGIN_URL = '/accounts/login'
TEMPLATE_DIRS = os.path.join(BASE_DIR, 'templates'),
TEMPLATE_LOADERS = ('django.template.loaders.filesystem.Loader',
    'django.template.loaders.app_directories.Loader')
TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates',
    'DIRS': TEMPLATE_DIRS, 'APP_DIRS': True, 'OPTIONS': {
    'context_processors': ['django.template.context_processors.debug',
    'django.template.context_processors.request',
    'django.contrib.auth.context_processors.auth',
    'django.contrib.messages.context_processors.messages',
    'django.core.context_processors.i18n',
    'django.core.context_processors.media']}}]
WSGI_APPLICATION = 'monksite.wsgi.application'
STATICFILES_FINDERS = (
    'django.contrib.staticfiles.finders.FileSystemFinder',
    'django.contrib.staticfiles.finders.AppDirectoriesFinder')
DATABASES = {'default': {'ENGINE': 'django.db.backends.mysql', 'NAME':
    'monk', 'USER': 'monk', 'PASSWORD': 'monk'}}
LANGUAGE_CODE = 'zh-hans'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
LOCALE_PATHS = BASE_DIR + '/locale/',
LANGUAGES = ('en', u'English'), ('zh-hans', u'简体中文'), ('zh-tw', u'繁體中文')
LANGUAGE_COOKIE_NAME = 'django_language'
STATICFILES_DIRS = os.path.join(BASE_DIR, 'static'),
STATIC_URL = '/static/'
EMAIL_USE_TLS = False
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_HOST = 'localhost'
EMAIL_PORT = 1025
REGISTRATION_OPEN = True
ACCOUNT_ACTIVATION_DAYS = 180
REGISTRATION_AUTO_LOGIN = True
URL_PREFIX = 'http://localhost:8000'
REGISTRATION_DEFAULT_FROM_EMAIL = 'admin@monk.com'

# -*- coding: utf-8 -*-

"""
Django settings for monk project.

Generated by 'django-admin startproject' using Django 1.8.3.

For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
MEDIA_ROOT = os.path.join(BASE_DIR, "media",)
MEDIA_URL = '/media/'

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 's=b&1rh@tfmy@t+9rsxtkc)t^pa$yy5#6iq)lhn5p^)=!7hqe*'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []

SITE_ID = 1

# Application definition

INSTALLED_APPS = (
    # main app
    'accounts',
    'interview_track',
    'company',
    'interviewer',
    'monksite',

    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.sites',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',

    # third party apps
    'django_extensions',
    'registration',
    'rest_framework',
)

MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'django.middleware.security.SecurityMiddleware',
)

ROOT_URLCONF = 'monksite.urls'
LOGIN_URL = '/accounts/login'

TEMPLATE_DIRS = (
	os.path.join(BASE_DIR, "templates",),
)

TEMPLATE_LOADERS = (
	'django.template.loaders.filesystem.Loader',
	'django.template.loaders.app_directories.Loader',
)

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': TEMPLATE_DIRS,
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
                "django.core.context_processors.i18n",
                "django.core.context_processors.media",
            ],
        },
    },
]

WSGI_APPLICATION = 'monksite.wsgi.application'

# List of finder classes that know how to find static files in
# various locations.
STATICFILES_FINDERS = (
    "django.contrib.staticfiles.finders.FileSystemFinder",
    "django.contrib.staticfiles.finders.AppDirectoriesFinder",
#    'django.contrib.staticfiles.finders.DefaultStorageFinder',
)

# Database
# https://docs.djangoproject.com/en/1.8/ref/settings/#databases

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'monk',
        'USER': 'monk',
        'PASSWORD': 'monk',
    }
}


# Internationalization
# https://docs.djangoproject.com/en/1.8/topics/i18n/

LANGUAGE_CODE = 'zh-hans'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True

LOCALE_PATHS = (
    BASE_DIR + '/locale/',
)

LANGUAGES = (
    ('en', u'English'),
    ('zh-hans', u'简体中文'),  # instead of 'zh-CN'
    ('zh-tw', u'繁體中文'),  # instead of 'zh-TW'
)
LANGUAGE_COOKIE_NAME = 'django_language'


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.8/howto/static-files/

STATICFILES_DIRS = (
    os.path.join(BASE_DIR, "static"),
)

STATIC_URL = '/static/'

# Email Related
EMAIL_USE_TLS = False
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''

EMAIL_HOST = 'localhost'
EMAIL_PORT = 1025
#SERVER_EMAIL = 'devt@monk.com'
#DEFAULT_FROM_EMAIL = 'support@monk.com'


# Registration related
REGISTRATION_OPEN = True
ACCOUNT_ACTIVATION_DAYS = 180  # One-week activation window
REGISTRATION_AUTO_LOGIN = True  # Automatically log the user in.

URL_PREFIX = "http://localhost:8000"


REGISTRATION_DEFAULT_FROM_EMAIL = "admin@monk.com"
