"""
Django settings for voer project.

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

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

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

SETTING_DIR = os.path.dirname(__file__)
PROJECT_DIR = os.path.join(SETTING_DIR, '../../')

LOGIN_URL='/user/login/'

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

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'p-z#m!yb%6(3k6fq+=mq6ikr@bbcjlp-gn8mu)ec#6x86tz+*7'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
TEMPLATE_DEBUG = False
ALLOWED_HOSTS = []


# Application definition
INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.humanize',
    'django.contrib.staticfiles',
    'registration',
    'tinymce',
    'sorl.thumbnail',
    'mce_filebrowser',
    'south',
    'vpw',
    'gunicorn',
)

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


TEMPLATE_CONTEXT_PROCESSORS = (
    'django.contrib.auth.context_processors.auth',
    'django.core.context_processors.debug',
    'django.core.context_processors.i18n',
    'django.core.context_processors.request',
    'django.core.context_processors.static',
    'django.contrib.messages.context_processors.messages',
)

LANGUAGES = (
    ('en', 'English'),
    ('vi', 'Vietinamese')
)

ROOT_URLCONF = 'voer.urls'

WSGI_APPLICATION = 'voer.wsgi.application'


# Internationalization
# https://docs.djangoproject.com/en/1.6/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
LOCALE_PATHS = (
    os.path.join(PROJECT_DIR, 'locale'),
)

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

STATIC_URL = '/static/'

TEMPLATE_DIRS = (
    os.path.join(PROJECT_DIR, 'templates'),
)


## REGISTER
ACCOUNT_ACTIVATION_DAYS = 7 # One-week activation window; you may, of course, use a different value.
EMAIL_HOST='email-smtp.us-east-1.amazonaws.com'
EMAIL_PORT=25
EMAIL_HOST_USER='AKIAJYYWT53Z4KQZMHUA'
EMAIL_HOST_PASSWORD='AhM4gp8514eJB7Fv2kg4Z2Idj4kPEVXtHotO664Ggzc4'
EMAIL_USE_TLS = True
DEFAULT_FROM_EMAIL = 'info@voer.edu.vn'
VOER_FACEBOOK_APP_ID = 271167089707244
## END REGISTER
#
STATICFILES_DIRS = [os.path.join(PROJECT_DIR, 'static')]

VPR_URL = '' # URL VPR
VPR_PORT = '' # PORT VPR
VPR_VERSION = '' # VPR Version
VPR_URL_FULL = os.path.join(VPR_URL, VPR_PORT, VPR_VERSION)

SITE_URL = 'voer.edu.vn' # URL Site

TINYMCE_DEFAULT_CONFIG = {
    'plugins': "table,paste,searchreplace",
    'theme': "advanced",
    'cleanup_on_startup': True,
    'custom_undo_redo_levels': 10,
    'file_browser_callback': 'mce_filebrowser',
}

MEDIA_ROOT = os.path.join(PROJECT_DIR, 'media')
MEDIA_URL = '/media/'

@@ -2512,16 +2512,1033 @@
 s'),%0A)%0A%0A
+LOGGING = %7B%0A    'version': 1,%0A    'disable_existing_loggers': True,%0A    'formatters': %7B%0A        'verbose': %7B%0A            'format': '%25(levelname)s %25(asctime)s %25(module)s %25(process)d %25(thread)d %25(message)s'%0A        %7D,%0A        'simple': %7B%0A            'format': '%25(levelname)s %25(message)s'%0A        %7D,%0A    %7D,%0A    'handlers': %7B%0A        'null': %7B%0A            'level': 'DEBUG',%0A            'class': 'logging.NullHandler',%0A        %7D,%0A        'console':%7B%0A            'level': 'DEBUG',%0A            'class': 'logging.StreamHandler',%0A            'formatter': 'simple'%0A        %7D,%0A        'mail_admins': %7B%0A            'level': 'ERROR',%0A            'class': 'django.utils.log.AdminEmailHandler',%0A            'filters': %5B%5D,%0A        %7D%0A    %7D,%0A    'loggers': %7B%0A        'django': %7B%0A            'handlers': %5B'null'%5D,%0A            'propagate': True,%0A            'level': 'INFO',%0A        %7D,%0A        'django.request': %7B%0A            'handlers': %5B'mail_admins'%5D,%0A            'level': 'ERROR',%0A            'propagate': False,%0A        %7D,%0A    %7D%0A%7D%0A%0A
 %0A## REGI

Add base.py