mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-14 00:44:53 +03:00
update APP_DIRS=True
This commit is contained in:
parent
a681ac4e45
commit
d7ecc23591
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user