Migrated to TEMPLATES settings

This commit is contained in:
Adnan Umer 2017-04-17 15:54:16 +05:00
parent a21ed181fe
commit ab12904826
1 changed files with 11 additions and 4 deletions

View File

@ -10,8 +10,8 @@ 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(__file__))
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/
@ -28,7 +28,6 @@ ALLOWED_HOSTS = []
DEFAULT_FILE_STORAGE = 'tenant_schemas.storage.TenantFileSystemStorage'
# Application definition
SHARED_APPS = (
@ -74,7 +73,6 @@ ROOT_URLCONF = 'dts_test_project.urls'
WSGI_APPLICATION = 'dts_test_project.wsgi.application'
# Database
# https://docs.djangoproject.com/en/1.8/ref/settings/#databases
@ -111,6 +109,16 @@ TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.messages.context_processors.messages',
)
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'OPTIONS': {
'context_processors': TEMPLATE_CONTEXT_PROCESSORS
},
}
]
# Internationalization
# https://docs.djangoproject.com/en/1.8/topics/i18n/
@ -124,7 +132,6 @@ USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.8/howto/static-files/