update APP_DIRS=True

This commit is contained in:
Dani Hodovic 2020-01-27 22:13:18 +01:00
parent a681ac4e45
commit d7ecc23591
No known key found for this signature in database
GPG Key ID: 15433E10A71D1221

View File

@ -175,6 +175,8 @@ TEMPLATES = [
"BACKEND": "django.template.backends.django.DjangoTemplates",
# https://docs.djangoproject.com/en/dev/ref/settings/#template-dirs
"DIRS": [str(APPS_DIR.path("templates"))],
# https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-TEMPLATES-APP_DIRS
"APP_DIRS": True,
"OPTIONS": {
# https://docs.djangoproject.com/en/dev/ref/settings/#template-loaders
# https://docs.djangoproject.com/en/dev/ref/templates/api/#loader-types
@ -198,7 +200,7 @@ TEMPLATES = [
}
]
# https://docs.djangoproject.com/en/3.0/ref/settings/#form-renderer
# https://docs.djangoproject.com/en/dev/ref/settings/#form-renderer
FORM_RENDERER = "django.forms.renderers.TemplatesSetting"
# http://django-crispy-forms.readthedocs.io/en/latest/install.html#template-packs