from __future__ import unicode_literals

import os

TEMPLATE_DIR = os.path.join(os.path.dirname(__file__), 'templates')
# Django 1.8 and later
TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [
            TEMPLATE_DIR,
        ],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.contrib.auth.context_processors.auth',
                'django.template.context_processors.debug',
                'django.template.context_processors.i18n',
                'django.template.context_processors.media',
                'django.template.context_processors.static',
                'django.template.context_processors.tz',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]
# Django 1.7 and earlier
TEMPLATE_DIRS = [TEMPLATE_DIR]
