Add: template dirs
This commit is contained in:
parent
846f6ca869
commit
43c856f22d
1 changed files with 3 additions and 1 deletions
|
@ -65,11 +65,13 @@ MIDDLEWARE = [
|
|||
]
|
||||
|
||||
ROOT_URLCONF = 'core.urls'
|
||||
TEMPLATE_DIR_APPS = os.path.join(CORE_DIR, "apps/templates") # ROOT dir for templates
|
||||
TEMPLATE_DIR_SITES = os.path.join(CORE_DIR, "sites/templates")
|
||||
|
||||
TEMPLATES = [
|
||||
{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
'DIRS': [],
|
||||
'DIRS': [TEMPLATE_DIR_APPS, TEMPLATE_DIR_SITES, "templates/",],
|
||||
'APP_DIRS': True,
|
||||
'OPTIONS': {
|
||||
'context_processors': [
|
||||
|
|
Loading…
Reference in a new issue